diff --git a/spec/datadog/profiling/crashtracker_spec.rb b/spec/datadog/profiling/crashtracker_spec.rb index 59137e85efa..9aa1d76975b 100644 --- a/spec/datadog/profiling/crashtracker_spec.rb +++ b/spec/datadog/profiling/crashtracker_spec.rb @@ -94,6 +94,12 @@ after { crashtracker.stop } it 'starts a second crash tracker for the fork' do + wait_for do + result = `pgrep -f libdatadog-crashtracking-receiver` + puts "pgrep: #{result} ----" + result.lines.size + end.to be(1), "Failure details: ps aux: #{`ps aux`}" + expect_in_fork do crashtracker.reset_after_fork