Extending wait time on tests
This commit is contained in:
@@ -135,7 +135,7 @@ class PollingReloadConfigMapTest {
|
||||
@Test
|
||||
void test(CapturedOutput output) {
|
||||
// we fail while reading 'configMapOne'
|
||||
Awaitility.await().atMost(Duration.ofSeconds(10)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
Awaitility.await().atMost(Duration.ofSeconds(20)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
boolean one = output.getOut().contains("Failure in reading named sources");
|
||||
boolean two = output.getOut().contains("Failed to load source");
|
||||
boolean three = output.getOut()
|
||||
@@ -146,7 +146,7 @@ class PollingReloadConfigMapTest {
|
||||
|
||||
// it passes while reading 'configMapTwo'
|
||||
Awaitility.await()
|
||||
.atMost(Duration.ofSeconds(10))
|
||||
.atMost(Duration.ofSeconds(20))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.until(() -> strategyCalled[0]);
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class PollingReloadSecretTest {
|
||||
@Test
|
||||
void test(CapturedOutput output) {
|
||||
// we fail while reading 'secretOne'
|
||||
Awaitility.await().atMost(Duration.ofSeconds(10)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
Awaitility.await().atMost(Duration.ofSeconds(20)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
boolean one = output.getOut().contains("Failure in reading named sources");
|
||||
boolean two = output.getOut().contains("Failed to load source");
|
||||
boolean three = output.getOut()
|
||||
@@ -147,7 +147,7 @@ class PollingReloadSecretTest {
|
||||
|
||||
// it passes while reading 'secretTwo'
|
||||
Awaitility.await()
|
||||
.atMost(Duration.ofSeconds(10))
|
||||
.atMost(Duration.ofSeconds(20))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.until(() -> strategyCalled[0]);
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ class PollingReloadConfigMapTest {
|
||||
@Test
|
||||
void test(CapturedOutput output) {
|
||||
// we fail while reading 'configMapOne'
|
||||
Awaitility.await().atMost(Duration.ofSeconds(10)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
Awaitility.await().atMost(Duration.ofSeconds(20)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
boolean one = output.getOut().contains("Failure in reading named sources");
|
||||
boolean two = output.getOut().contains("Failed to load source");
|
||||
boolean three = output.getOut()
|
||||
@@ -119,7 +119,7 @@ class PollingReloadConfigMapTest {
|
||||
|
||||
// it passes while reading 'configMapTwo'
|
||||
Awaitility.await()
|
||||
.atMost(Duration.ofSeconds(10))
|
||||
.atMost(Duration.ofSeconds(20))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.until(() -> strategyCalled[0]);
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ public class PollingReloadSecretTest {
|
||||
@Test
|
||||
void test(CapturedOutput output) {
|
||||
// we fail while reading 'secretOne'
|
||||
Awaitility.await().atMost(Duration.ofSeconds(10)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
Awaitility.await().atMost(Duration.ofSeconds(20)).pollInterval(Duration.ofSeconds(1)).until(() -> {
|
||||
boolean one = output.getOut().contains("Failure in reading named sources");
|
||||
boolean two = output.getOut().contains("Failed to load source");
|
||||
boolean three = output.getOut()
|
||||
@@ -122,7 +122,7 @@ public class PollingReloadSecretTest {
|
||||
|
||||
// it passes while reading 'secretTwo'
|
||||
Awaitility.await()
|
||||
.atMost(Duration.ofSeconds(10))
|
||||
.atMost(Duration.ofSeconds(20))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.until(() -> strategyCalled[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user