Skip to content

Commit 186a1d3

Browse files
committed
Fix non root module tests
1 parent b1ccc93 commit 186a1d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/opentelemetry-docker-tests/tests/postgres/test_psycopg_sqlcommenter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_commenter_enabled_not_root_module(self):
9595
cursor.execute("SELECT 1;")
9696
self.assertRegex(
9797
cursor._query.query.decode("ascii"),
98-
r"SELECT 1 /\*db_driver='psycopg(.*)',dbapi_level='\d.\d',dbapi_threadsafety=\d,driver_paramstyle=(.*),traceparent='\d{1,2}-[a-zA-Z0-9_]{32}-[a-zA-Z0-9_]{16}-\d{1,2}'\*/;",
98+
r"SELECT 1 /\*db_driver='Connection%%3Aunknown',dbapi_level='\d.\d',dbapi_threadsafety='unknown',driver_paramstyle='unknown',traceparent='\d{1,2}-[a-zA-Z0-9_]{32}-[a-zA-Z0-9_]{16}-\d{1,2}'\*/;",
9999
)
100100

101101
cursor.close()

0 commit comments

Comments
 (0)