Skip to content

Commit 26393c6

Browse files
committed
Remove a skiped test.
1 parent 75f2aad commit 26393c6

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/tests/test_aiohttp_server_integration.py

-21
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import aiohttp
1818
from http import HTTPStatus
1919
from .utils import HTTPMethod
20-
from unittest import mock
2120

2221
from opentelemetry import trace as trace_api
2322
from opentelemetry.test.test_base import TestBase
@@ -101,23 +100,3 @@ async def test_status_code_instrumentation(tracer, server_fixture,
101100
assert f"http://{server.host}:{server.port}{url}" == span.attributes[
102101
SpanAttributes.HTTP_URL
103102
]
104-
105-
106-
@pytest.mark.skip(reason="Historical purposes. Can't see the reason of this mock.")
107-
def test_not_recording(self):
108-
mock_tracer = mock.Mock()
109-
mock_span = mock.Mock()
110-
mock_span.is_recording.return_value = False
111-
mock_tracer.start_span.return_value = mock_span
112-
with mock.patch("opentelemetry.trace.get_tracer") as patched:
113-
patched.start_span.return_value = mock_span
114-
# pylint: disable=W0612
115-
# host, port = run_with_test_server(
116-
# self.get_default_request(), self.URL, self.default_handler
117-
# )
118-
119-
self.assertTrue(patched.start_span.called)
120-
self.assertFalse(mock_span.is_recording())
121-
self.assertTrue(mock_span.is_recording.called)
122-
self.assertFalse(mock_span.set_attribute.called)
123-
self.assertFalse(mock_span.set_status.called)

0 commit comments

Comments
 (0)