commit | 1535078231030df911551f44628ac8709628a5bb | [log] [tgz] |
---|---|---|
author | Kevin Clark <kclark@apache.org> | Wed Jun 18 01:16:27 2008 +0000 |
committer | Kevin Clark <kclark@apache.org> | Wed Jun 18 01:16:27 2008 +0000 |
tree | c48e80913587100ca41ae6ecf5251aa92781f335 | |
parent | 6c4598bbc0d55f47dd01c896ecd2e5e3f029357f [diff] |
rb: Add spec for shutting down NonblockingServer in response to a client message git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669002 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/nonblockingserver_spec.rb b/lib/rb/spec/nonblockingserver_spec.rb index 5850413..773fc03 100644 --- a/lib/rb/spec/nonblockingserver_spec.rb +++ b/lib/rb/spec/nonblockingserver_spec.rb
@@ -163,4 +163,11 @@ @server.shutdown(1, true) @server_thread.join(3).should_not be_nil end + + it "should allow shutting down in response to a message" do + client = setup_client + client.greeting(true).should == Hello.new + client.shutdown + @server_thread.join(2).should_not be_nil + end end