Skip to content

Commit

Permalink
Fix flaky test for julia nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Jan 21, 2022
1 parent bd46ab3 commit df43527
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/PProf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ end
@testset "export basic profile" begin
Profile.clear()

let x = 1
@profile for _ in 1:10000; x += 1; end
sleep(2)
@profile for i in 1:10000
# Profile compilation
@eval foo(x,y) = x * y + x / y
@eval foo($i,3)
end

# Cache profile output to test that it isn't changed
Expand Down

0 comments on commit df43527

Please sign in to comment.