Missing a platform.system() check

matrix
Guillermo Rodriguez 2020-09-03 09:57:04 -03:00
parent c993e36e95
commit ad68ff665f
No known key found for this signature in database
GPG Key ID: 3F61096EC7DF75A8
1 changed files with 3 additions and 2 deletions

View File

@ -239,10 +239,11 @@ def test_not_fast_enough_quad(
results, diff = time_quad_ex
delay = max(diff - cancel_delay, 0)
results = tractor.run(cancel_after, delay, arbiter_addr=arb_addr)
if platform.system() == 'Windows' and results is not None:
system = platform.system()
if system in ('Windows', 'Darwin') and results is not None:
# In Windows CI it seems later runs are quicker then the first
# so just ignore these
print("Woa there windows caught your breath eh?")
print(f"Woa there {system} caught your breath eh?")
else:
# should be cancelled mid-streaming
assert results is None