Permalink
Browse files

wait longer for connection

  • Loading branch information...
1 parent 7d36f6c commit d2841eb8f7e95f2764a71103bc7ca87b5cf8af0d @slyphon slyphon committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/c_zookeeper_spec.rb
View
@@ -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

0 comments on commit d2841eb

Please sign in to comment.