File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -294,9 +294,9 @@ def test_timeout_handle(loop: asyncio.AbstractEventLoop) -> None:
294
294
295
295
def test_when_timeout_smaller_second (loop : asyncio .AbstractEventLoop ) -> None :
296
296
timeout = 0.1
297
- timer = loop .time () + timeout
298
297
299
298
handle = helpers .TimeoutHandle (loop , timeout )
299
+ timer = loop .time () + timeout
300
300
start_handle = handle .start ()
301
301
assert start_handle is not None
302
302
when = start_handle .when ()
@@ -310,9 +310,9 @@ def test_when_timeout_smaller_second_with_low_threshold(
310
310
loop : asyncio .AbstractEventLoop ,
311
311
) -> None :
312
312
timeout = 0.1
313
- timer = loop .time () + timeout
314
313
315
314
handle = helpers .TimeoutHandle (loop , timeout , 0.01 )
315
+ timer = loop .time () + timeout
316
316
start_handle = handle .start ()
317
317
assert start_handle is not None
318
318
when = start_handle .when ()
You can’t perform that action at this time.
0 commit comments