Skip to content

Commit 319d7f7

Browse files
use teardown method
1 parent 61d98e4 commit 319d7f7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/profiler/test_continuous_profiler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ def test_continuous_profiler_auto_start_and_manual_stop(
271271
pass
272272

273273
# Wait so profiles are captured before assertions.
274-
sentry_sdk.profiler.continuous_profiler._scheduler.running = False
275-
sentry_sdk.profiler.continuous_profiler._scheduler.thread.join()
274+
sentry_sdk.profiler.continuous_profiler._scheduler.teardown()
276275

277276
assert_single_transaction_with_profile_chunks(envelopes, thread)
278277

0 commit comments

Comments
 (0)