Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 56957bf

Browse files
committed
Adapt JDBC tests to connect to default database
Before the network refactor, the requested database was ignored, so requesting a non-existing database didn't lead to an error. This is why the tests didn't fail before.
1 parent 0b43d31 commit 56957bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/testing/jdbc/src/PelotonErrorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class PelotonErrorTest {
2323
private static final String DDL = "CREATE TABLE foo(id integer PRIMARY KEY, year integer);";
2424

2525
private static Connection makeConnection(String host, int port, String username, String pass) throws SQLException {
26-
String url = String.format("jdbc:postgresql://%s:%d/pavlo", host, port);
26+
String url = String.format("jdbc:postgresql://%s:%d/default_database", host, port);
2727
Connection conn = DriverManager.getConnection(url, username, pass);
2828
return conn;
2929
}

script/testing/jdbc/src/PelotonTypeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class PelotonTypeTest {
3434

3535

3636
private static Connection makeConnection(String host, int port, String username, String pass) throws SQLException {
37-
String url = String.format("jdbc:postgresql://%s:%d/pavlo", host, port);
37+
String url = String.format("jdbc:postgresql://%s:%d/default_database", host, port);
3838
Connection conn = DriverManager.getConnection(url, username, pass);
3939
return conn;
4040
}

0 commit comments

Comments
 (0)