Skip to content

Commit c7d03e7

Browse files
authored
Merge pull request #39 from DilumAluthge-forks/dpa/test-timeout
Test suite: Increase the timeout to 10 minutes; also, allow customizing the timeout with `JULIA_SLURMCLUSTERMANAGER_TEST_TIMEOUT_SECONDS`
2 parents 8d568ea + 5aeb212 commit c7d03e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/runtests.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ end
3737
end
3838

3939
# wait for job to complete
40-
status = timedwait(60.0, pollint=1.0) do
40+
default_timeout_seconds = 600 # 10 minutes
41+
timeout_seconds = parse(Float64, strip(get(ENV, "JULIA_SLURMCLUSTERMANAGER_TEST_TIMEOUT_SECONDS", "$(default_timeout_seconds)")))
42+
pollint = 1.0 # 1 second
43+
status = timedwait(timeout_seconds, pollint=pollint) do
4144
state = getjobstate(jobid)
4245
state == nothing && return false
4346
@info "jobstate=$(state)"

0 commit comments

Comments
 (0)