Skip to content

Commit 6486f7a

Browse files
reduce noise
1 parent fa3e141 commit 6486f7a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/profiler/test_continuous_profiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def test_continuous_profiler_auto_start_and_manual_stop(
326326
pytest.param(get_client_options(False), id="experiment"),
327327
],
328328
)
329+
@mock.patch("sentry_sdk.profiler.continuous_profiler.PROFILE_BUFFER_SECONDS", 0.01)
329330
def test_continuous_profiler_manual_start_and_stop_sampled(
330331
sentry_init,
331332
capture_envelopes,
@@ -355,7 +356,7 @@ def test_continuous_profiler_manual_start_and_stop_sampled(
355356
with sentry_sdk.start_transaction(name="profiling"):
356357
assert get_profiler_id() is not None, "profiler should be running"
357358
with sentry_sdk.start_span(op="op"):
358-
pass
359+
time.sleep(0.1)
359360
assert get_profiler_id() is not None, "profiler should be running"
360361

361362
assert get_profiler_id() is not None, "profiler should be running"
@@ -372,7 +373,7 @@ def test_continuous_profiler_manual_start_and_stop_sampled(
372373
with sentry_sdk.start_transaction(name="profiling"):
373374
assert get_profiler_id() is None, "profiler should not be running"
374375
with sentry_sdk.start_span(op="op"):
375-
pass
376+
time.sleep(0.1)
376377
assert get_profiler_id() is None, "profiler should not be running"
377378

378379
assert_single_transaction_without_profile_chunks(envelopes)

0 commit comments

Comments
 (0)