Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
We introduced some threads, because it's not safe to make kazoo calls
Browse files Browse the repository at this point in the history
in a session watch callback. So added sleeps to some of the tests
having to do with session recovery.
  • Loading branch information
Jim Fulton committed Aug 28, 2014
1 parent 1db32ba commit ce36956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zc/zk/disconnectiontests.py
Expand Up @@ -162,6 +162,8 @@ def session_timeout_with_child_and_data_watchers():
properties changed True
children changed True
>>> import time; time.sleep(1)
Our handlers were called because data changed.
>>> dict(properties)
Expand Down
Expand Up @@ -41,6 +41,11 @@ Some custom data and acl:
a = 1
pid = 9999
>>> zk.client.lose_session()

There be threading thar, so wait:

>>> import time; time.sleep(1)

>>> zk.print_tree('/fooservice/providers')
/providers
/test
Expand Down

0 comments on commit ce36956

Please sign in to comment.