Skip to content

Commit

Permalink
Changed timeout for tests from 10000 to 20000
Browse files Browse the repository at this point in the history
  • Loading branch information
abangau committed Apr 11, 2024
1 parent fbf8b2f commit 86f9352
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate tests
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (testResultsCollectors.containsKey(spIdA) && testResultsCollectors.get(spIdA).size() == 1) {
// TODO: add deeper verification
return true;
Expand All @@ -150,7 +150,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate logs
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (logsCollectors.containsKey(spIdA) && logsCollectors.get(spIdA).size() == 1) {
// TODO: add deeper verification
return true;
Expand All @@ -160,7 +160,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate coverage
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (coverageCollectors.containsKey(spIdA) && coverageCollectors.get(spIdA).size() == 2) {
// TODO: add deeper verification
return true;
Expand Down Expand Up @@ -195,7 +195,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
simulatePushCoverageAllClients();

// validate events
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (eventsCollectors.containsKey(spIdA) && eventsCollectors.get(spIdA).stream().mapToInt(cil -> cil.getEvents().size()).sum() == 3 &&
eventsCollectors.containsKey(spIdB) && eventsCollectors.get(spIdA).stream().mapToInt(cil -> cil.getEvents().size()).sum() == 3) {
// client A
Expand Down Expand Up @@ -226,7 +226,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate tests
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (testResultsCollectors.containsKey(spIdA) && testResultsCollectors.get(spIdA).size() == 1 &&
testResultsCollectors.containsKey(spIdB) && testResultsCollectors.get(spIdB).size() == 1) {
// TODO: add deeper verification
Expand All @@ -237,7 +237,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate logs
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (logsCollectors.containsKey(spIdA) && logsCollectors.get(spIdA).size() == 1 &&
logsCollectors.containsKey(spIdB) && logsCollectors.get(spIdB).size() == 1) {
// TODO: add deeper verification
Expand All @@ -248,7 +248,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate coverages
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (coverageCollectors.containsKey(spIdA) && coverageCollectors.get(spIdA).size() == 2 &&
coverageCollectors.containsKey(spIdB) && coverageCollectors.get(spIdB).size() == 2) {
// TODO: add deeper verification
Expand Down Expand Up @@ -278,7 +278,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
simulatePushCoverageAllClients();

// validate events
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (eventsCollectors.containsKey(spIdB) && eventsCollectors.get(spIdB).stream().mapToInt(cil -> cil.getEvents().size()).sum() == 3) {
Assert.assertTrue(eventsCollectors.get(spIdA).isEmpty());
eventsCollectors.get(spIdB).forEach(cil -> {
Expand All @@ -297,7 +297,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate tests
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (testResultsCollectors.containsKey(spIdB) && testResultsCollectors.get(spIdB).size() == 1) {
Assert.assertTrue(testResultsCollectors.get(spIdA).isEmpty());
// TODO: add deeper verification
Expand All @@ -308,7 +308,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate logs
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (logsCollectors.containsKey(spIdB) && logsCollectors.get(spIdB).size() == 1) {
Assert.assertTrue(logsCollectors.get(spIdA).isEmpty());
// TODO: add deeper verification
Expand All @@ -319,7 +319,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate coverages
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (coverageCollectors.containsKey(spIdB) && coverageCollectors.get(spIdB).size() == 2) {
Assert.assertTrue(coverageCollectors.get(spIdA).isEmpty());
// TODO: add deeper verification
Expand Down Expand Up @@ -456,7 +456,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate tests
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (testResultsCollectors.containsKey(spIdA) && testResultsCollectors.get(spIdA).size() == 1) {
// TODO: add deeper verification
return true;
Expand All @@ -466,7 +466,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate logs
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (logsCollectors.containsKey(spIdA) && logsCollectors.get(spIdA).size() == 1) {
// TODO: add deeper verification
return true;
Expand All @@ -476,7 +476,7 @@ public void testE2EFunctional() throws ExecutionException, InterruptedException
});

// validate coverage
GeneralTestUtils.waitAtMostFor(10000, () -> {
GeneralTestUtils.waitAtMostFor(20000, () -> {
if (coverageCollectors.containsKey(spIdA) && coverageCollectors.get(spIdA).size() == 2) {
// TODO: add deeper verification
return true;
Expand Down

0 comments on commit 86f9352

Please sign in to comment.