Skip to content

Commit 5406c95

Browse files
committed
Remove redundant test
1 parent d69b22d commit 5406c95

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

test/runtests.jl

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -907,41 +907,6 @@ end
907907
serial_position=:middle)
908908
end
909909

910-
@testset "serial tests actually run sequentially" begin
911-
serial_test_body = quote
912-
sleep(1.0)
913-
children = _count_child_pids($(getpid()))
914-
# Make sure serial tests run alone.
915-
if children >= 0
916-
@test children == 1
917-
end
918-
end
919-
920-
testsuite = Dict(
921-
"s1" => serial_test_body,
922-
"s2" => serial_test_body,
923-
"s3" => serial_test_body,
924-
"p1" => :(),
925-
"p2" => :(),
926-
)
927-
io = IOBuffer()
928-
ioc = IOContext(io, :color => true)
929-
old_id_counter = ParallelTestRunner.ID_COUNTER[]
930-
jobs = 2
931-
elapsed = @elapsed begin
932-
@show_if_error io runtests(ParallelTestRunner, ["--jobs=$(jobs)", "--verbose"];
933-
testsuite, stdout=ioc, stderr=ioc,
934-
init_code=:(include($(joinpath(@__DIR__, "utils.jl")))),
935-
serial=["s1", "s2", "s3"])
936-
end
937-
str = String(take!(io))
938-
@test contains(str, "SUCCESS")
939-
@test ParallelTestRunner.ID_COUNTER[] == old_id_counter + jobs
940-
# Serial tests sleeping 1.0s each should take >= 3s total (sequential),
941-
# not ~1.0s (parallel).
942-
@test elapsed >= 3.0
943-
end
944-
945910
@testset "all tests serial" begin
946911
testsuite = Dict(
947912
"a" => :(),

0 commit comments

Comments
 (0)