Skip to content

Commit

Permalink
Fix postgresql-embedded under Linux (Ubuntu 17.10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Apr 13, 2018
1 parent 4bf98df commit af9f47b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<dependency>
<groupId>ru.yandex.qatools.embed</groupId>
<artifactId>postgresql-embedded</artifactId>
<version>2.6</version>
<version>2.9</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ 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) {
return String.format("target/postgresql/data/%s", database);
return String.format(System.getProperty("java.io.tmpdir") + "/data/%s", database);
}

}

0 comments on commit af9f47b

Please sign in to comment.