Skip to content

Commit

Permalink
Another attempt at tweaking this
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Jul 1, 2024
1 parent f4ebb2d commit 72018a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/datadog/profiling/crashtracker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@

it 'starts a second crash tracker for the fork' do
expect_in_fork do
wait_for { `pgrep -f libdatadog-crashtracking-receiver`.lines.size }.to be 1

crashtracker.reset_after_fork

expect(`pgrep -f libdatadog-crashtracking-receiver`.lines.size).to be 2
wait_for { `pgrep -f libdatadog-crashtracking-receiver`.lines.size }.to be 2

crashtracker.stop

expect(`pgrep -f libdatadog-crashtracking-receiver`.lines.size).to be 1
wait_for { `pgrep -f libdatadog-crashtracking-receiver`.lines.size }.to be 1
end
end
end
Expand Down

0 comments on commit 72018a9

Please sign in to comment.