Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
6c4598b
)
rb: Add spec for shutting down NonblockingServer in response to a client message
author
Kevin Clark
<kclark@apache.org>
Wed, 18 Jun 2008 01:16:27 +0000
(
01:16
+0000)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/lib/rb/spec/nonblockingserver_spec.rb
b/lib/rb/spec/nonblockingserver_spec.rb
index
5850413
..
773fc03
100644
(file)
--- a/
lib/rb/spec/nonblockingserver_spec.rb
+++ b/
lib/rb/spec/nonblockingserver_spec.rb
@@
-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