Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

test(redshift): skip the initial poll delay when waiting for a cluster connection (#3984)

Priamo Germosen275977cb7582
diff --git a/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftCatalogSeedIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftCatalogSeedIntegrationTest.java
index 0d2eb86a2e..e7f9206256 100644
--- a/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftCatalogSeedIntegrationTest.java
+++ b/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftCatalogSeedIntegrationTest.java
@@ -65,6 +65,7 @@ class RedshiftCatalogSeedIntegrationTest {
try {
return Awaitility.await()
.atMost(Duration.ofSeconds(30))
+ .pollDelay(Duration.ZERO)
.pollInterval(Duration.ofMillis(500))
.ignoreExceptions()
.until(() -> DriverManager.getConnection(jdbcUrl(cluster), username, password), Objects::nonNull);
diff --git a/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftProxyIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftProxyIntegrationTest.java
index 97f1677144..ac5381ee0c 100644
--- a/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftProxyIntegrationTest.java
+++ b/src/test/java/io/github/hectorvent/floci/services/redshift/RedshiftProxyIntegrationTest.java
@@ -45,6 +45,7 @@ class RedshiftProxyIntegrationTest {
try {
return Awaitility.await()
.atMost(Duration.ofSeconds(30))
+ .pollDelay(Duration.ZERO)
.pollInterval(Duration.ofMillis(500))
.ignoreExceptions()
.until(() -> DriverManager.getConnection(jdbcUrl(cluster), username, password), Objects::nonNull);