Skip to content

Commit 62ed03a

Browse files
committed
Relax timings of subshell tests
1 parent dab3b39 commit 62ed03a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_subshells.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def test_run_concurrently_sequence(are_subshells, overlap):
143143
kc, "import threading as t, time; b=t.Barrier(2); print('ok')", None
144144
)
145145

146-
sleep = 0.2
146+
sleep = 0.5
147147
if overlap:
148148
codes = [
149149
f"b.wait(); start0=True; end0=False; time.sleep({sleep}); end0=True",
@@ -186,7 +186,7 @@ def test_run_concurrently_timing(include_main_shell):
186186
kc, "import threading as t, time; b=t.Barrier(2); print('ok')", None
187187
)
188188

189-
times = (0.2, 0.2)
189+
times = (0.5, 0.5)
190190
# Prepare messages, times are sleep times in seconds.
191191
# Identical times for both subshells is a harder test as preparing and sending
192192
# the execute_reply messages may overlap.
@@ -230,7 +230,7 @@ def test_execution_count():
230230
)
231231

232232
# Prepare messages
233-
times = (0.2, 0.1, 0.4, 0.15) # Sleep seconds
233+
times = (0.4, 0.2, 0.8, 0.3) # Sleep seconds
234234
msgs = []
235235
for i, (id, sleep) in enumerate(zip((None, subshell_id, None, subshell_id), times)):
236236
code = f"b.wait(); time.sleep({sleep})" if i < 2 else f"time.sleep({sleep})"

0 commit comments

Comments
 (0)