-
-
Save ke4roh/24bdbf01983a4cf08d9bb351b75d4979 to your computer and use it in GitHub Desktop.
test_call_wait patch to (begin to) test wait after finished
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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