25
25
global running_under_rr () = false
26
26
end
27
27
28
+ const rmwait_timeout = running_under_rr () ? 300 : 30
29
+
28
30
if use_revise
29
31
# First put this at the top of the DEPOT PATH to install revise if necessary.
30
32
# Once it's loaded, we swizzle it to the end, to avoid confusing any tests.
@@ -278,7 +280,7 @@ cd(@__DIR__) do
278
280
elseif n > 1
279
281
# the worker encountered some failure, recycle it
280
282
# so future tests get a fresh environment
281
- rmprocs (wrkr, waitfor= 30 )
283
+ rmprocs (wrkr, waitfor= rmwait_timeout )
282
284
p = addprocs_with_testenv (1 )[1 ]
283
285
remotecall_fetch (include, p, " testdefs.jl" )
284
286
if use_revise
@@ -291,7 +293,7 @@ cd(@__DIR__) do
291
293
# the worker has reached the max-rss limit, recycle it
292
294
# so future tests start with a smaller working set
293
295
if n > 1
294
- rmprocs (wrkr, waitfor= 30 )
296
+ rmprocs (wrkr, waitfor= rmwait_timeout )
295
297
p = addprocs_with_testenv (1 )[1 ]
296
298
remotecall_fetch (include, p, " testdefs.jl" )
297
299
if use_revise
@@ -305,7 +307,7 @@ cd(@__DIR__) do
305
307
end
306
308
if p != 1
307
309
# Free up memory =)
308
- rmprocs (p, waitfor= 30 )
310
+ rmprocs (p, waitfor= rmwait_timeout )
309
311
end
310
312
end
311
313
end
0 commit comments