Commit a4493367 authored by Ontje Lünsdorf's avatar Ontje Lünsdorf
Browse files

Added an additional test for triggered events.

parent 7a4934c6
......@@ -246,3 +246,17 @@ def test_triggered_event(env):
assert result == 'i was already done'
def test_triggered_timeout(env):
def process(env):
def child(env, event):
value = yield event
event = env.timeout(1, 'i was already done')
# Start the child after the timeout has already happened.
yield env.timeout(2)
value = yield env.process(child(env, event))
assert value == 'i was already done'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment