Skip to content

Commit 368e08e

Browse files
committed
add a finite timeout
1 parent 7584b71 commit 368e08e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

irods/test/modules/test_signal_handling_in_multithread_get.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ def test(test_case, signal_names=("SIGTERM", "SIGINT")):
5454
# of the concurrent.futures module, these are nondaemon threads and will block the exit of the main thread
5555
# unless measures are taken (#722).
5656
localfile = process.stdout.readline().strip()
57+
# Use timeout of 10 minutes for test transfer, which should be more than enough.
58+
GENEROUS_TIMEOUT = 10*60
5759
test_case.assertTrue(
5860
wait_till_true(
5961
lambda: os.path.exists(localfile)
60-
and os.stat(localfile).st_size > OBJECT_SIZE // 2
62+
and os.stat(localfile).st_size > OBJECT_SIZE // 2,
63+
timeout=GENEROUS_TIMEOUT
6164
),
6265
"Parallel download from data_objects.get() probably experienced a fatal error before spawning auxiliary data transfer threads.",
6366
)

0 commit comments

Comments
 (0)