test(rds): check snapshot JDBC readiness immediately (#8078)

This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-12 13:58:25 -04:00
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)) {