Skip to content

Commit 10b6af4

Browse files
authored
fix: postgres instances not up error on latest (#472)
1 parent a0458d9 commit 10b6af4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/integration/container/tests/utils/test_environment.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import { OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-grpc";
3939
import { logger } from "../../../../../common/logutils";
4040
import pkgPg from "pg";
4141
import { ConnectionOptions, createConnection } from "mysql2/promise";
42+
import { readFileSync } from "fs";
4243

4344
export class TestEnvironment {
4445
private static env?: TestEnvironment;
@@ -113,7 +114,10 @@ export class TestEnvironment {
113114
password: info?.databaseInfo.password,
114115
database: info?.databaseInfo.defaultDbName,
115116
query_timeout: 3000,
116-
connectionTimeoutMillis: 3000
117+
connectionTimeoutMillis: 3000,
118+
ssl: {
119+
ca: readFileSync("/app/global-bundle.pem").toString()
120+
}
117121
});
118122
await client.connect();
119123

0 commit comments

Comments
 (0)