We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setTimeout(..., 'str')
1 parent 59b2fad commit f05af7cCopy full SHA for f05af7c
tests/python/test_event_loop.py
@@ -46,7 +46,7 @@ def to_raise(msg):
46
with pytest.raises(asyncio.exceptions.TimeoutError):
47
await asyncio.wait_for(pm.eval("new Promise((resolve) => setTimeout(resolve, '100'))"), timeout=0.09)
48
# Number("1 second") -> NaN -> delay turns to be 0s
49
- await asyncio.wait_for(pm.eval("new Promise((resolve) => setTimeout(resolve, '1 second'))"), timeout=0.05) # won't be precisely 0s
+ await asyncio.wait_for(pm.eval("new Promise((resolve) => setTimeout(resolve, '1 second'))"), timeout=0.5) # won't be precisely 0s
50
51
# passing an invalid ID to `clearTimeout` should silently do nothing; no exception is thrown.
52
pm.eval("clearTimeout(NaN)")
0 commit comments