From ea8d73d503008d53711dbb9283cdc9792ab61a1e Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Wed, 4 Dec 2024 16:00:13 -0800 Subject: [PATCH] Fix unit test --- .../tests/test_psycopg2_integration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumentation/opentelemetry-instrumentation-psycopg2/tests/test_psycopg2_integration.py b/instrumentation/opentelemetry-instrumentation-psycopg2/tests/test_psycopg2_integration.py index 9a6a5ff2fa..eed43f9f62 100644 --- a/instrumentation/opentelemetry-instrumentation-psycopg2/tests/test_psycopg2_integration.py +++ b/instrumentation/opentelemetry-instrumentation-psycopg2/tests/test_psycopg2_integration.py @@ -208,6 +208,7 @@ def test_instrument_connection_with_instrument(self): self.assertEqual(len(spans_list), 0) Psycopg2Instrumentor().instrument() + cnx = psycopg2.connect(database="test") cnx = Psycopg2Instrumentor().instrument_connection(cnx) cursor = cnx.cursor() cursor.execute(query)