aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portage/tests')
-rw-r--r--lib/portage/tests/util/futures/test_done_callback_after_exit.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/portage/tests/util/futures/test_done_callback_after_exit.py b/lib/portage/tests/util/futures/test_done_callback_after_exit.py
index 46a51c271..8913d70e5 100644
--- a/lib/portage/tests/util/futures/test_done_callback_after_exit.py
+++ b/lib/portage/tests/util/futures/test_done_callback_after_exit.py
@@ -36,5 +36,9 @@ class DoneCallbackAfterExitTestCase(TestCase):
for i in range(3):
event = loop.create_future()
+ task.addStartListener(lambda task: event.set_result(None))
+ loop.run_until_complete(event)
+
+ event = loop.create_future()
task.addExitListener(lambda task: event.set_result(None))
loop.run_until_complete(event)