Skip to content

Commit 062c7f1

Browse files
authored
Add a check that there are no running workers at end of the tests (#127)
1 parent 8a76223 commit 062c7f1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/runtests.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,4 +802,13 @@ end
802802
@test contains(str, "SUCCESS")
803803
end
804804

805+
# This testset should always be the last one, don't add anything after this.
806+
# We want to make sure there are no running workers at the end of the tests.
807+
@testset "no workers running" begin
808+
children = _count_child_pids()
809+
if children >= 0
810+
@test children == 0
811+
end
812+
end
813+
805814
end

0 commit comments

Comments
 (0)