Skip to content

Commit 51f5b05

Browse files
committed
opentelemetry-instrumentation-aiohttp-client: fix tests for real
1 parent cb941b5 commit 51f5b05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,9 @@ def response_hook(
886886

887887
class TestLoadingAioHttpInstrumentor(unittest.TestCase):
888888
def test_loading_instrumentor(self):
889-
eps = entry_points("opentelemetry_instrumentor", "aiohttp-client")
889+
(entry_point,) = entry_points(
890+
group="opentelemetry_instrumentor", name="aiohttp-client"
891+
)
890892

891-
instrumentor = next(eps).load()()
893+
instrumentor = entry_point.load()()
892894
self.assertIsInstance(instrumentor, AioHttpClientInstrumentor)

0 commit comments

Comments
 (0)