Author: bryanduxbury
Date: Tue Apr  7 16:35:49 2009
New Revision: 762840

URL: http://svn.apache.org/viewvc?rev=762840&view=rev
Log:
THRIFT-433. rb: 'rake spec' sort of fails

This patch allows the process to exit cleanly. Yay!


Modified:
    incubator/thrift/trunk/lib/rb/spec/nonblocking_server_spec.rb

Modified: incubator/thrift/trunk/lib/rb/spec/nonblocking_server_spec.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/nonblocking_server_spec.rb?rev=762840&r1=762839&r2=762840&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/nonblocking_server_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/nonblocking_server_spec.rb Tue Apr  7 
16:35:49 2009
@@ -181,6 +181,7 @@
       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 @@
       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 @@
       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


Reply via email to