Fix potential flakiness in `test_run_until_complete_baseexception` (#100148)

This commit is contained in:
Fantix King 2022-12-10 05:04:22 -05:00 committed by GitHub
parent 228c92eb5c
commit 50b08d5b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ class BaseEventLoopTests(test_utils.TestCase):
self.loop.stop()
func.called = True
func.called = False
self.loop.call_later(0.01, func)
self.loop.call_soon(self.loop.call_soon, func)
self.loop.run_forever()
self.assertTrue(func.called)