From 310af8ac5f29e3d2a99bc7dff4ffac3df39e170c Mon Sep 17 00:00:00 2001 From: Brian Cipriano Date: Mon, 17 Jan 2022 15:55:52 -0500 Subject: [PATCH] [cuebot] Switch to new version of embedded Postgres for unit tests. (#1087) --- cuebot/build.gradle | 5 ++++- .../com/imageworks/spcue/test/TestDatabaseSetupPostgres.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cuebot/build.gradle b/cuebot/build.gradle index 4f93bd229..403cc893e 100644 --- a/cuebot/build.gradle +++ b/cuebot/build.gradle @@ -63,8 +63,11 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test' testCompile group: 'org.assertj', name: 'assertj-core', version: '3.8.0' - testCompile group: 'com.opentable.components', name: 'otj-pg-embedded', version: '0.13.3' + testCompile group: 'io.zonky.test', name: 'embedded-postgres', version: '1.3.1' testCompile group: 'org.flywaydb', name: 'flyway-core', version: '5.2.0' + + // Use newer version of Postgres for tests: https://github.com/zonkyio/embedded-postgres/issues/78 + implementation enforcedPlatform('io.zonky.test.postgres:embedded-postgres-binaries-bom:11.13.0') } compileJava { diff --git a/cuebot/src/test/java/com/imageworks/spcue/test/TestDatabaseSetupPostgres.java b/cuebot/src/test/java/com/imageworks/spcue/test/TestDatabaseSetupPostgres.java index 713af7cbc..49513708b 100644 --- a/cuebot/src/test/java/com/imageworks/spcue/test/TestDatabaseSetupPostgres.java +++ b/cuebot/src/test/java/com/imageworks/spcue/test/TestDatabaseSetupPostgres.java @@ -18,7 +18,7 @@ import com.google.common.base.Charsets; import com.google.common.io.Resources; -import com.opentable.db.postgres.embedded.EmbeddedPostgres; +import io.zonky.test.db.postgres.embedded.EmbeddedPostgres; import org.flywaydb.core.Flyway; import java.net.URL;