From 5aeb212700e1b73b639f6a9a530680605dd9d3b9 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Mon, 20 Jan 2025 18:58:15 -0500 Subject: [PATCH] Test suite: Increase the timeout to 10 minutes; also, allow customizing the timeout with `JULIA_SLURMCLUSTERMANAGER_TEST_TIMEOUT_SECONDS` --- test/runtests.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 248169a..ad357e6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -37,7 +37,10 @@ end end # wait for job to complete - status = timedwait(60.0, pollint=1.0) do + default_timeout_seconds = 600 # 10 minutes + timeout_seconds = parse(Float64, strip(get(ENV, "JULIA_SLURMCLUSTERMANAGER_TEST_TIMEOUT_SECONDS", "$(default_timeout_seconds)"))) + pollint = 1.0 # 1 second + status = timedwait(timeout_seconds, pollint=pollint) do state = getjobstate(jobid) state == nothing && return false @info "jobstate=$(state)"