Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
tkf and vtjnash authored Nov 12, 2021
1 parent 569d56f commit bf070fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/threads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ end
close(proc.in)

# https://github.com/JuliaLang/julia/pull/42973
@testset "spawn and wait *a lot* of tasks in @profile" begin
Sys.islinux() && @testset "spawn and wait *a lot* of tasks in @profile" begin
# Not using threads_exec.jl for better isolation, reproducibility, and a
# tighter timeout.
script = "profile_spawnmany_exec.jl"
Expand All @@ -158,7 +158,7 @@ close(proc.in)
proc = run(ignorestatus(setenv(cmd, "NTASKS" => n; dir = @__DIR__)); wait = false)
done = Threads.Atomic{Bool}(false)
timeout = false
timer = Timer(10) do _
timer = Timer(100) do _
timeout = true
for sig in [Base.SIGTERM, Base.SIGHUP, Base.SIGKILL]
for _ in 1:1000
Expand Down

0 comments on commit bf070fc

Please sign in to comment.