diff --git a/r2dbc-examples/src/test/java/com/nebhale/r2dbc/examples/PostgresqlServerResource.java b/r2dbc-examples/src/test/java/com/nebhale/r2dbc/examples/PostgresqlServerResource.java index 029a45a..fa62f53 100644 --- a/r2dbc-examples/src/test/java/com/nebhale/r2dbc/examples/PostgresqlServerResource.java +++ b/r2dbc-examples/src/test/java/com/nebhale/r2dbc/examples/PostgresqlServerResource.java @@ -110,7 +110,7 @@ String getUsername() { } private static Path getCachePath() { - return Paths.get("target/postgresql"); + return Paths.get(System.getProperty("java.io.tmpdir"), "pgembed"); } private static String getDataDirectory(String database) { 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) {