Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wait longer for connection

  • Loading branch information...
commit d2841eb8f7e95f2764a71103bc7ca87b5cf8af0d 1 parent 7d36f6c
@slyphon slyphon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/c_zookeeper_spec.rb
View
4 spec/c_zookeeper_spec.rb
@@ -13,7 +13,7 @@ def pop_all_events
end
end
- def wait_until_connected(timeout=2)
+ def wait_until_connected(timeout=10)
wait_until(timeout) { @czk.state == Zookeeper::Constants::ZOO_CONNECTED_STATE }
end
@@ -38,7 +38,7 @@ def wait_until_connected(timeout=2)
end
it %[should have a connection event after being connected] do
- event = wait_until(2) { @event_queue.pop }
+ event = wait_until(10) { @event_queue.pop }
event.should be
event[:req_id].should == Zookeeper::Constants::ZKRB_GLOBAL_CB_REQ
event[:type].should == Zookeeper::Constants::ZOO_SESSION_EVENT
Please sign in to comment.
Something went wrong with that request. Please try again.