Skip to content

Commit f7fb543

Browse files
committed
Bypass MacOS runners for "test7"
"test7" is a unit test asserting that two parallel calls to a one second sleep should together takes less than two seconds. Apparently, this frequently fails on MacOS runners (@LourensVeen, private communication). Therefore, it seems better to bypass this test for that platform.
1 parent 56756ae commit f7fb543

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tests/compile_tests/async_implementation/test_async.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import os
99
from pathlib import Path
1010
import time
11+
import sys
1112

1213

1314
class ForTesting(InCodeComponentImplementation):
@@ -120,7 +121,9 @@ def test7(self):
120121
self.assertEqual(x[0].result(), x[1])
121122
instance1.stop()
122123
instance2.stop()
123-
self.assertTrue(t2-t1 < 2.)
124+
# Do not run this test on MacOS runners, since they seem very slow.
125+
if sys.platform != "darwin":
126+
self.assertTrue(t2-t1 < 2.)
124127

125128
def test8(self):
126129
from threading import Thread

0 commit comments

Comments
 (0)