Skip to content

Commit 7394f23

Browse files
authored
test(live): wait longer on job kill (#45)
1 parent 67c71fa commit 7394f23

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/jobs-live.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,13 @@ end
150150
# On 6.4+, killing a job doesn't immediately change its status
151151
#@test job_killed.status ∉ ("Running", "Submitted")
152152
# Wait a bit more and then make sure that the job is stopped
153-
@debug "Sleeping for 30s: $(job.id)"
154-
sleep(30)
153+
for t in [10, 20, 60, 180]
154+
@info "Sleeping for $(t)s, waiting for job to be killed: $(job.id)"
155+
sleep(t)
156+
if JuliaHub.job(job_killed).status ("Running", "Submitted")
157+
break
158+
end
159+
end
155160
job_killed = JuliaHub.job(job_killed) # test default auth=
156161
@test job_killed.status == "Stopped"
157162
# wait for the logger task to finish, if hasn't already

0 commit comments

Comments
 (0)