diff --git a/packages/cubejs-schema-compiler/test/integration/postgres/PostgresDBRunner.js b/packages/cubejs-schema-compiler/test/integration/postgres/PostgresDBRunner.js index 5e8ded3aec0f3..84dc36df77372 100644 --- a/packages/cubejs-schema-compiler/test/integration/postgres/PostgresDBRunner.js +++ b/packages/cubejs-schema-compiler/test/integration/postgres/PostgresDBRunner.js @@ -125,7 +125,7 @@ export class PostgresDBRunner extends BaseDbRunner { } async containerLazyInit() { - const version = process.env.TEST_PGSQL_VERSION || '9.6.8'; + const version = process.env.TEST_PGSQL_VERSION || '12.22'; return new GenericContainer(`postgres:${version}`) .withEnvironment({ diff --git a/packages/cubejs-testing-shared/src/db-container-runners/postgres.ts b/packages/cubejs-testing-shared/src/db-container-runners/postgres.ts index 255fc1bdd1ef1..8fc359792d275 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/postgres.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/postgres.ts @@ -5,7 +5,7 @@ import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract export class PostgresDBRunner extends DbRunnerAbstract { public static startContainer(options: DBRunnerContainerOptions) { - const version = process.env.TEST_PGSQL_VERSION || options.version || '9.6.8'; + const version = process.env.TEST_PGSQL_VERSION || options.version || '12.22'; const container = new GenericContainer(`postgres:${version}`) .withEnvironment({