Skip to content

Commit a5a8fab

Browse files
committed
try increasing the timeout
1 parent 5280490 commit a5a8fab

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_utils.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -905,20 +905,16 @@ def test_get_current_thread_meta_failed_to_get_main_thread():
905905
results = Queue(maxsize=1)
906906

907907
def target():
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-
):
908+
with mock.patch("threading.current_thread", side_effect=["fake thread"]):
909+
with mock.patch("threading.current_thread", side_effect=["fake thread"]):
914910
results.put(get_current_thread_meta())
915911

916912
main_thread = threading.main_thread()
917913

918914
thread = threading.Thread(target=target)
919915
thread.start()
920916
thread.join()
921-
assert (main_thread.ident, main_thread.name) == results.get(timeout=1)
917+
assert (main_thread.ident, main_thread.name) == results.get(timeout=5)
922918

923919

924920
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)