diff --git a/spec/datadog/profiling/collectors/cpu_and_wall_time_worker_spec.rb b/spec/datadog/profiling/collectors/cpu_and_wall_time_worker_spec.rb index 07747dcecf5..d65685df15d 100644 --- a/spec/datadog/profiling/collectors/cpu_and_wall_time_worker_spec.rb +++ b/spec/datadog/profiling/collectors/cpu_and_wall_time_worker_spec.rb @@ -1023,7 +1023,7 @@ all_samples = try_wait_until do samples = samples_from_pprof_without_gc_and_overhead(recorder.serialize!) - samples if samples.any? + samples if samples_for_thread(samples, process_waiter_thread).any? end cpu_and_wall_time_worker.stop