rb: Add spec for shutting down NonblockingServer in response to a client message
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:16:27 +0000 (01:16 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:16:27 +0000 (01:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669002 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/spec/nonblockingserver_spec.rb

index 5850413..773fc03 100644 (file)
@@ -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