From f79780005c2c2c61667101d8dc74cd925b021718 Mon Sep 17 00:00:00 2001 From: sdeleuze Date: Fri, 13 Apr 2018 15:56:50 +0200 Subject: [PATCH] Fix postgresql-embedded under Linux (Ubuntu 17.10) (Workaround for yandex-qatools/postgresql-embedded#110) --- .../nebhale/r2dbc/postgresql/util/PostgresqlServerResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {