Skip to content

Commit 864fe05

Browse files
committed
chore: fix env for pg instrumentation tests
1 parent 38ef4fe commit 864fe05

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

plugins/node/opentelemetry-instrumentation-pg/test/pg.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const memoryExporter = new InMemorySpanExporter();
6464
const CONFIG = {
6565
user: process.env.POSTGRES_USER || 'postgres',
6666
password: process.env.POSTGRES_PASSWORD || 'postgres',
67-
database: process.env.POSTGRES_DB || 'postgres',
67+
database: process.env.POSTGRES_DB || 'otel_pg_database',
6868
host: process.env.POSTGRES_HOST || 'localhost',
6969
port: process.env.POSTGRES_PORT
7070
? parseInt(process.env.POSTGRES_PORT, 10)

test/docker-compose.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name: opentelemetry-nodejs-test-services
1212

1313
services:
1414
cassandra:
15-
image: bitnami/cassandra:3
15+
image: cassandra:3
1616
environment:
1717
MAX_HEAP_SIZE: "1G"
1818
HEAP_NEWSIZE: 400m
@@ -56,6 +56,8 @@ services:
5656

5757
mysql:
5858
image: mysql:5.7
59+
# No ARM64 image layer. See https://stackoverflow.com/a/65592942
60+
platform: linux/x86_64
5961
environment:
6062
MYSQL_USER: "otel"
6163
MYSQL_PASSWORD: "secret"
@@ -86,7 +88,7 @@ services:
8688
# https://github.com/docker-library/docs/blob/master/postgres/README.md#how-to-extend-this-image
8789
image: postgres:16-alpine
8890
ports:
89-
- "5432:5432"
91+
- "54320:5432"
9092
environment:
9193
POSTGRES_HOST_AUTH_METHOD: "trust"
9294
POSTGRES_USER: "postgres"

test/test-services.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ ORACLE_PASSWORD=secret
3030
ORACLE_SERVICENAME=FREEPDB1
3131
POSTGRES_DB=otel_pg_database
3232
POSTGRES_HOST=localhost
33-
POSTGRES_PORT=5432
33+
POSTGRES_PORT=54320
3434
POSTGRES_USER=postgres
3535
POSTGRES_PASSWORD=postgres

0 commit comments

Comments
 (0)