Skip to content

Commit bec8401

Browse files
committed
Fix flakey test_sending_unicast on windows
1 parent 7ffea9f commit bec8401

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,13 @@ def test_sending_unicast():
460460
assert zc.cache.get(entry) is None
461461

462462
zc.send(generated)
463-
time.sleep(0.2)
463+
464+
# Handle slow github CI runners on windows
465+
for _ in range(10):
466+
time.sleep(0.05)
467+
if zc.cache.get(entry) is not None:
468+
break
469+
464470
assert zc.cache.get(entry) is not None
465471

466472
zc.close()

0 commit comments

Comments
 (0)