Skip to content

Commit

Permalink
Give more leeway to thread allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Dec 9, 2024
1 parent 8b52632 commit f8b7793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_allocations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_sample_rate
def test_thread_allocation
result = Vernier.trace(allocation_interval: 1) do
Thread.new do
100.times do
1000.times do
Object.new
end
end.join
Expand All @@ -62,6 +62,6 @@ def test_thread_allocation

allocation_samples = other_thread.dig(:allocations, :samples)

assert_includes 100..130, allocation_samples.count
assert_includes 1000..1100, allocation_samples.count
end
end

0 comments on commit f8b7793

Please sign in to comment.