File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1995,14 +1995,15 @@ end
19951995
19961996 # Test that workers that were killed forcefully are detected as such
19971997 exit_state = nothing
1998- DistributedNext. add_worker_exited_callback ((pid, state) -> exit_state = state)
1998+ exited_key = DistributedNext. add_worker_exited_callback ((pid, state) -> exit_state = state)
19991999 pid = only (addprocs (1 ))
20002000
20012001 redirect_stderr (devnull ) do
20022002 remote_do (exit, pid)
20032003 timedwait (() -> ! isnothing (exit_state), 10 )
20042004 end
20052005 @test exit_state == DistributedNext. WorkerState_exterminated
2006+ DistributedNext. remove_worker_exited_callback (exited_key)
20062007end
20072008
20082009# This is a simplified copy of a test from Revise.jl's tests
You can’t perform that action at this time.
0 commit comments