2525 global running_under_rr () = false
2626end
2727
28+ const rmwait_timeout = running_under_rr () ? 300 : 30
29+
2830if use_revise
2931 # First put this at the top of the DEPOT PATH to install revise if necessary.
3032 # Once it's loaded, we swizzle it to the end, to avoid confusing any tests.
@@ -278,7 +280,7 @@ cd(@__DIR__) do
278280 elseif n > 1
279281 # the worker encountered some failure, recycle it
280282 # so future tests get a fresh environment
281- rmprocs (wrkr, waitfor= 30 )
283+ rmprocs (wrkr, waitfor= rmwait_timeout )
282284 p = addprocs_with_testenv (1 )[1 ]
283285 remotecall_fetch (include, p, " testdefs.jl" )
284286 if use_revise
@@ -291,7 +293,7 @@ cd(@__DIR__) do
291293 # the worker has reached the max-rss limit, recycle it
292294 # so future tests start with a smaller working set
293295 if n > 1
294- rmprocs (wrkr, waitfor= 30 )
296+ rmprocs (wrkr, waitfor= rmwait_timeout )
295297 p = addprocs_with_testenv (1 )[1 ]
296298 remotecall_fetch (include, p, " testdefs.jl" )
297299 if use_revise
@@ -305,7 +307,7 @@ cd(@__DIR__) do
305307 end
306308 if p != 1
307309 # Free up memory =)
308- rmprocs (p, waitfor= 30 )
310+ rmprocs (p, waitfor= rmwait_timeout )
309311 end
310312 end
311313 end
0 commit comments