From 1e69d4f3a21c0d6828100521b09bf432fe6df490 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Sat, 21 Mar 2026 14:22:21 +0100 Subject: [PATCH] Fix race condition in the callback tests --- test/distributed_exec.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/distributed_exec.jl b/test/distributed_exec.jl index fc9c0d4..baa6fb1 100644 --- a/test/distributed_exec.jl +++ b/test/distributed_exec.jl @@ -2040,7 +2040,9 @@ end pid = only(workers()) @test only(starting_managers) isa DistributedNext.LocalManager @test started_workers == [pid] + @setstatus!("foo", pid) rmprocs(workers()) + wait_for_deregistration(pid) @test exiting_workers == [pid] @test exited_workers == [(pid, DistributedNext.WorkerState_terminated)]