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