From e6503ce9303694455fa2cd440dc56f55d496f8b9 Mon Sep 17 00:00:00 2001 From: Srikanth Chekuri Date: Sun, 15 Nov 2020 12:28:52 +0530 Subject: [PATCH] Update asyncpg docker tests --- .../tests/asyncpg/test_asyncpg_functional.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/opentelemetry-docker-tests/tests/asyncpg/test_asyncpg_functional.py b/tests/opentelemetry-docker-tests/tests/asyncpg/test_asyncpg_functional.py index 151f88169..19364d7df 100644 --- a/tests/opentelemetry-docker-tests/tests/asyncpg/test_asyncpg_functional.py +++ b/tests/opentelemetry-docker-tests/tests/asyncpg/test_asyncpg_functional.py @@ -54,6 +54,7 @@ class TestFunctionalAsyncPG(TestBase): self.assertEqual(len(spans), 1) self.assertIs(StatusCode.UNSET, spans[0].status.status_code) self.check_span(spans[0]) + self.assertEqual(spans[0].name, "SELECT 42;") self.assertEqual(spans[0].attributes["db.statement"], "SELECT 42;") def test_instrumented_fetch_method_without_arguments(self, *_, **__): @@ -156,6 +157,7 @@ class TestFunctionalAsyncPG_CaptureParameters(TestBase): self.assertIs(StatusCode.UNSET, spans[0].status.status_code) self.check_span(spans[0]) + self.assertEqual(spans[0].name, "SELECT $1;") self.assertEqual(spans[0].attributes["db.statement"], "SELECT $1;") self.assertEqual( spans[0].attributes["db.statement.parameters"], "('1',)"