From 8407cfd4664ddcf607303b60ac4dabc86d136655 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Tue, 7 Apr 2009 16:35:49 +0000 Subject: [PATCH] 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 --- lib/rb/spec/nonblocking_server_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rb/spec/nonblocking_server_spec.rb b/lib/rb/spec/nonblocking_server_spec.rb index 22c9280e..3362d262 100644 --- a/lib/rb/spec/nonblocking_server_spec.rb +++ b/lib/rb/spec/nonblocking_server_spec.rb @@ -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 -- 2.17.1