File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments