Skip to content

Commit e8793da

Browse files
committed
Fix psycopg test
1 parent dbe0733 commit e8793da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/contrib/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
'port': int(os.getenv("TEST_CASSANDRA_PORT", 9042)),
1818
}
1919

20+
# Use host=127.0.0.1 since local docker testing breaks with localhost
21+
2022
POSTGRES_CONFIG = {
2123
'host': '127.0.0.1',
2224
'port': int(os.getenv("TEST_POSTGRES_PORT", 5432)),

tests/contrib/psycopg/test_psycopg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def assert_conn_is_traced(self, db, service):
126126
error=1,
127127
span_type='sql',
128128
meta={
129-
'out.host': 'localhost',
129+
'out.host': '127.0.0.1',
130130
'out.port': TEST_PORT,
131131
},
132132
),

0 commit comments

Comments
 (0)