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 1332413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@
<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,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) {
Expand Down

0 comments on commit 1332413

Please sign in to comment.