Skip to content

Commit

Permalink
Convert all checks to wait_for
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Jul 1, 2024
1 parent 72018a9 commit f40e681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/datadog/profiling/crashtracker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
it 'starts the crash tracker' do
start

expect(`pgrep -f libdatadog-crashtracking-receiver`).to_not be_empty
wait_for { `pgrep -f libdatadog-crashtracking-receiver` }.to_not be_empty

crashtracker.stop
end
Expand All @@ -73,7 +73,7 @@
it 'only starts the crash tracker once' do
3.times { crashtracker.start }

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

crashtracker.stop
end
Expand Down Expand Up @@ -131,7 +131,7 @@

stop

expect(`pgrep -f libdatadog-crashtracking-receiver`).to be_empty
wait_for { `pgrep -f libdatadog-crashtracking-receiver` }.to be_empty
end
end

Expand Down

0 comments on commit f40e681

Please sign in to comment.