Skip to content

Commit 17faa00

Browse files
committed
Use larger time periods for timeout testing ...
... to avoid discrepencies in time calculations across different Python versions
1 parent 8315c6a commit 17faa00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/test_unit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ async def test_run(event_loop):
8989
break
9090

9191
for unit in app.units:
92-
action2 = await unit.run('sleep 1', timeout=0.5)
92+
action2 = await unit.run('sleep 3', timeout=1)
9393
assert isinstance(action2, Action)
9494
await action2.wait()
9595
assert action2.status == 'failed'
9696
break
9797

9898
for unit in app.units:
99-
action3 = await unit.run('sleep 0.5', timeout=2)
99+
action3 = await unit.run('sleep 1', timeout=3)
100100
assert isinstance(action3, Action)
101101
await action3.wait()
102102
assert action3.status == 'completed'

0 commit comments

Comments
 (0)