Skip to content

Commit 5280490

Browse files
committed
.
1 parent 08bbe00 commit 5280490

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,12 @@ def test_get_current_thread_meta_failed_to_get_main_thread():
905905
results = Queue(maxsize=1)
906906

907907
def target():
908-
with mock.patch("threading.current_thread", side_effect=["fake thread"]):
909-
with mock.patch("threading.current_thread", side_effect=["fake thread"]):
908+
with mock.patch(
909+
"sentry_sdk.utils.threading.current_thread", side_effect=["fake thread"]
910+
):
911+
with mock.patch(
912+
"sentry_sdk.utils.threading.current_thread", side_effect=["fake thread"]
913+
):
910914
results.put(get_current_thread_meta())
911915

912916
main_thread = threading.main_thread()

0 commit comments

Comments
 (0)