From 1332413280ffd3883b2e65dc1667161432a6e78f Mon Sep 17 00:00:00 2001 From: sdeleuze Date: Fri, 13 Apr 2018 15:34:57 +0200 Subject: [PATCH] Fix postgresql-embedded under Linux (Ubuntu 17.10) (Workaround for yandex-qatools/postgresql-embedded#110) --- pom.xml | 3 ++- .../r2dbc/postgresql/util/PostgresqlServerResource.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 049af42..4e61668 100644 --- a/pom.xml +++ b/pom.xml @@ -55,8 +55,9 @@ ru.yandex.qatools.embed postgresql-embedded - 2.6 + 2.9 + diff --git a/r2dbc-postgresql/src/test/java/com/nebhale/r2dbc/postgresql/util/PostgresqlServerResource.java b/r2dbc-postgresql/src/test/java/com/nebhale/r2dbc/postgresql/util/PostgresqlServerResource.java index c9676f1..f0d39ab 100644 --- a/r2dbc-postgresql/src/test/java/com/nebhale/r2dbc/postgresql/util/PostgresqlServerResource.java +++ b/r2dbc-postgresql/src/test/java/com/nebhale/r2dbc/postgresql/util/PostgresqlServerResource.java @@ -112,7 +112,7 @@ protected void before() throws Throwable { } private static Path getCachePath() { - return Paths.get("target/postgresql"); + return Paths.get(System.getProperty("java.io.tmpdir"), "pgembed"); } private static String getDataDirectory(String database) {