From d5f27730c7b2e44f7f1a1fe808e3c56840766f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sun, 5 Apr 2026 10:34:40 +0200 Subject: [PATCH] Add a check that there are no running workers at end of the tests --- test/runtests.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 975c3fa..0a0efb6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -802,4 +802,13 @@ end @test contains(str, "SUCCESS") end +# This testset should always be the last one, don't add anything after this. +# We want to make sure there are no running workers at the end of the tests. +@testset "no workers running" begin + children = _count_child_pids() + if children >= 0 + @test children == 0 + end +end + end