mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
test(rds): check snapshot JDBC readiness immediately (#8078)
This commit is contained in:
1 parent
40ba75fd6f
commit
89a0c86797
1 file changed
+1
-1
@@ -143,7 +143,7 @@ class RdsMysqlSnapshotDockerIntegrationTest {
|
||||
*/
|
||||
private static <T> T whenConnected(int port, String user, String password, SqlWork<T> work) {
|
||||
AtomicReference<T> result = new AtomicReference<>();
|
||||
await().atMost(Duration.ofSeconds(90)).pollInterval(Duration.ofSeconds(1))
|
||||
await().atMost(Duration.ofSeconds(90)).pollDelay(Duration.ZERO).pollInterval(Duration.ofSeconds(1))
|
||||
.ignoreExceptionsInstanceOf(SQLException.class)
|
||||
.until(() -> {
|
||||
try (Connection connection = connect(port, user, password)) {
|
||||
|
||||
Reference in new issue
Block a user