Skip to content

Commit

Permalink
PostgresSQL: now also caching previously downloaded version
Browse files Browse the repository at this point in the history
  • Loading branch information
edrdo committed May 8, 2017
1 parent 1b89729 commit 01c2b0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/java/org/jdbdt/postgresql/PostgreSQLSuite.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.jdbdt.postgresql;

import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Path;

import org.jdbdt.DBConfig;
import org.jdbdt.DBEngineTestSuite;
Expand All @@ -18,8 +20,8 @@ public class PostgreSQLSuite extends DBEngineTestSuite {
@BeforeClass
public static void setup() throws ClassNotFoundException, IOException {
postgres = new EmbeddedPostgres(Version.V9_6_2);

String url = postgres.start("localhost", 5432, "jdbdt", "jdbt", "jdbdt");
Path cachePath = FileSystems.getDefault().getPath(System.getProperty("user.home") + "/.embedpostgresql/");
String url = postgres.start(EmbeddedPostgres.cachedRuntimeConfig(cachePath));

DBConfig.getConfig()
.reset()
Expand Down

1 comment on commit 01c2b0d

@edrdo
Copy link
Member Author

@edrdo edrdo commented on 01c2b0d May 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#7

Please sign in to comment.