Skip to content

Commit 8a1ec47

Browse files
committed
fmt
1 parent a993302 commit 8a1ec47

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

tests/tracer/test_tracer.py

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,9 @@ def test_tracer_shutdown_timeout():
676676
mock_stop.assert_called_once_with(2)
677677

678678

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+
)
680682
def test_tracer_shutdown():
681683
import mock
682684

@@ -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

0 commit comments

Comments
 (0)