THRIFT-433. rb: 'rake spec' sort of fails
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
diff --git a/lib/rb/spec/nonblocking_server_spec.rb b/lib/rb/spec/nonblocking_server_spec.rb
index 22c9280..3362d26 100644
--- a/lib/rb/spec/nonblocking_server_spec.rb
+++ b/lib/rb/spec/nonblocking_server_spec.rb
@@ -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