Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drvi committed Jun 7, 2024
1 parent 8e31624 commit d7ecd81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const url = "http://127.0.0.1:$port"
done = Threads.Atomic{Bool}(false)
# Schedule some work that's known to be expensive, to profile it
workload() = @async begin
for _ in 1:1000
if done[] return end
while !done[]
InteractiveUtils.peakflops(1024)
yield() # yield to allow the tests to run
end
Expand Down Expand Up @@ -85,6 +84,7 @@ const url = "http://127.0.0.1:$port"
fname = read(IOBuffer(req.body), String)
@info "filename: $fname"
@test isfile(fname)
done[] = true
end

@testset "debug endpoint cpu profile start/end" begin
Expand Down Expand Up @@ -156,8 +156,7 @@ const url = "http://127.0.0.1:$port"
done = Threads.Atomic{Bool}(false)
# Schedule some work that's known to be expensive, to profile it
workload() = @async begin
for _ in 1:200
if done[] return end
while !done[]
global a = [[] for i in 1:1000]
yield() # yield to allow the tests to run
end
Expand Down

0 comments on commit d7ecd81

Please sign in to comment.