THRIFT-433. rb: 'rake spec' sort of fails
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 7 Apr 2009 16:35:49 +0000 (16:35 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 7 Apr 2009 16:35:49 +0000 (16:35 +0000)
This patch allows the process to exit cleanly. Yay!

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762840 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/spec/nonblocking_server_spec.rb

index 22c9280..3362d26 100644 (file)
@@ -181,6 +181,7 @@ class ThriftNonblockingServerSpec < Spec::ExampleGroup
       client = setup_client
       client.greeting(true).should == Hello.new
       client.greeting(false).should == Hello.new(:greeting => 'Aloha!')
+      @server.shutdown
     end
 
     it "should handle concurrent clients" do
@@ -198,6 +199,7 @@ class ThriftNonblockingServerSpec < Spec::ExampleGroup
       4.times { trans_queue.pop }
       setup_client.unblock(4)
       4.times { queue.pop.should be_true }
+      @server.shutdown
     end
 
     it "should handle messages from more than 5 long-lived connections" do
@@ -222,6 +224,7 @@ class ThriftNonblockingServerSpec < Spec::ExampleGroup
       client.greeting(false).should == Hello.new(:greeting => 'Aloha!')
       7.times { queues.shift << :exit }
       client.greeting(true).should == Hello.new
+      @server.shutdown
     end
 
     it "should shut down when asked" do