Author: kclark
Date: Tue Jun 17 18:16:27 2008
New Revision: 669002
URL: http://svn.apache.org/viewvc?rev=669002&view=rev
Log:
rb: Add spec for shutting down NonblockingServer in response to a client message
Modified:
incubator/thrift/trunk/lib/rb/spec/nonblockingserver_spec.rb
Modified: incubator/thrift/trunk/lib/rb/spec/nonblockingserver_spec.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/nonblockingserver_spec.rb?rev=669002&r1=669001&r2=669002&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/nonblockingserver_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/nonblockingserver_spec.rb Tue Jun 17
18:16:27 2008
@@ -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