File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,9 @@ def test_tracer_shutdown_timeout():
676
676
mock_stop .assert_called_once_with (2 )
677
677
678
678
679
- @pytest .mark .subprocess
679
+ @pytest .mark .subprocess (
680
+ err = b"Spans started after the tracer has been shut down will not be sent to the Datadog Agent.\n " ,
681
+ )
680
682
def test_tracer_shutdown ():
681
683
import mock
682
684
@@ -691,26 +693,6 @@ def test_tracer_shutdown():
691
693
692
694
mock_write .assert_not_called ()
693
695
694
- @pytest .mark .subprocess
695
- def test_tracer_shutdown_warning ():
696
- import logging
697
-
698
- import mock
699
-
700
- from ddtrace .trace import tracer as t
701
-
702
- t .shutdown ()
703
-
704
- with mock .patch .object (logging .Logger , "warning" ) as mock_logger :
705
- with t .trace ("something" ):
706
- pass
707
-
708
- mock_logger .assert_has_calls (
709
- [
710
- mock .call ("Spans started after the tracer has been shut down will not be sent to the Datadog Agent." ),
711
- ]
712
- )
713
-
714
696
715
697
@pytest .mark .skip (reason = "Fails to Pickle RateLimiter in the Tracer" )
716
698
@pytest .mark .subprocess
You can’t perform that action at this time.
0 commit comments