Skip to content

Commit b0b623e

Browse files
committed
Timeout on failure test_async_fixture_concurrent_teardown
1 parent f2da645 commit b0b623e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/test_basic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,15 @@ async def this():
223223
yield 42
224224
225225
there.callback(None)
226+
reactor.callLater(5, here.cancel)
226227
await here
227228
228229
@pytest.fixture
229230
async def that():
230231
yield 37
231232
232233
here.callback(None)
234+
reactor.callLater(5, there.cancel)
233235
await there
234236
235237
def test_succeed(this, that):

0 commit comments

Comments
 (0)