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 @@ -677,7 +677,9 @@ def test_tracer_shutdown_timeout():
677677
678678
679679@pytest .mark .subprocess
680- def test_tracer_shutdown ():
680+ def test_tracer_shutdown (
681+ err = b"Spans started after the tracer has been shut down will not be sent to the Datadog Agent.\n " ,
682+ ):
681683 import mock
682684
683685 from ddtrace .internal .writer import AgentWriter
@@ -691,26 +693,6 @@ def test_tracer_shutdown():
691693
692694 mock_write .assert_not_called ()
693695
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-
714696
715697@pytest .mark .skip (reason = "Fails to Pickle RateLimiter in the Tracer" )
716698@pytest .mark .subprocess
You can’t perform that action at this time.
0 commit comments