From: Kevin Clark Date: Wed, 18 Jun 2008 01:16:27 +0000 (+0000) Subject: rb: Add spec for shutting down NonblockingServer in response to a client message X-Git-Tag: 0.2.0~549 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=1535078231030df911551f44628ac8709628a5bb;p=common%2Fthrift.git 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 58504139..773fc039 100644 --- a/lib/rb/spec/nonblockingserver_spec.rb +++ b/lib/rb/spec/nonblockingserver_spec.rb @@ -163,4 +163,11 @@ class ThriftNonblockingServerSpec < Spec::ExampleGroup @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