Skip to content

Instantly share code, notes, and snippets.

@ke4roh

ke4roh/patch.txt Secret

Created February 15, 2017 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ke4roh/24bdbf01983a4cf08d9bb351b75d4979 to your computer and use it in GitHub Desktop.
Save ke4roh/24bdbf01983a4cf08d9bb351b75d4979 to your computer and use it in GitHub Desktop.
test_call_wait patch to (begin to) test wait after finished
diff --git a/tests/core/test_call_wait.py b/tests/core/test_call_wait.py
index db8e650..9b57353 100644
--- a/tests/core/test_call_wait.py
+++ b/tests/core/test_call_wait.py
@@ -168,3 +168,14 @@ def test_eval(manager, watcher, app):
value = x.value
assert value == 3
+
+
+def test_wait_too_late(manager, watcher, app):
+ event = foo()
+ manager.fire(event)
+ assert watcher.wait("foo_success")
+
+ yield
+ x = yield manager.wait(event)
+ value = x.value
+ assert value == list(range(1, 10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment