Skip to content

Commit e21e4cb

Browse files
comment #2343 add additional junit test for PostgreSQL v42.7.7 using only the jdbcUrl
1 parent 4da46f5 commit e21e4cb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎src/test/java/com/zaxxer/hikari/pool/PostgresTest.java‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ public void testCase4() throws Exception
106106
exerciseConfig(config, 3);
107107
}
108108

109+
@Test
110+
public void testPgsqlJdbcUrl()
111+
{
112+
HikariConfig config = newHikariConfig();
113+
config.setJdbcUrl(postgres.getJdbcUrl());
114+
config.setUsername(postgres.getUsername());
115+
config.setPassword(postgres.getPassword());
116+
config.setMinimumIdle(3);
117+
config.setMaximumPoolSize(10);
118+
config.setConnectionTimeout(1000);
119+
config.setIdleTimeout(SECONDS.toMillis(20));
120+
121+
exerciseConfig(config, 3);
122+
}
123+
109124
@Test
110125
public void testCredentialRotation()
111126
{

0 commit comments

Comments
 (0)