Skip to content

Commit 8e5bd96

Browse files
test: Assert presence of profile chunks after shutdown (#6174)
Assert that telemetry has been collected after the continuous profiler shuts down. This removes the race where profiles had not yet reached the transport by the time the assertions ran.
1 parent d58ac65 commit 8e5bd96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/profiler/test_continuous_profiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ def test_continuous_profiler_manual_start_and_stop_sampled(
359359
time.sleep(0.1)
360360
assert get_profiler_id() is not None, "profiler should be running"
361361

362-
assert_single_transaction_with_profile_chunks(envelopes, thread)
363-
364362
assert get_profiler_id() is not None, "profiler should be running"
365363

366364
stop_profiler_func()
367365

366+
assert_single_transaction_with_profile_chunks(envelopes, thread)
367+
368368
# the profiler stops immediately in manual mode
369369
assert get_profiler_id() is None, "profiler should not be running"
370370

0 commit comments

Comments
 (0)