Skip to content

Commit 7eb2567

Browse files
committed
Increase rewind e2e test polling timeouts for CI reliability
1 parent 4f8ac2d commit 7eb2567

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

endtoendtests/src/test/java/com/functions/EndToEndTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public void rewindFailedOrchestration() throws InterruptedException {
246246
String statusQueryGetUri = jsonPath.get("statusQueryGetUri");
247247

248248
// Wait for the orchestration to fail
249-
boolean failed = pollingCheck(statusQueryGetUri, "Failed", null, Duration.ofSeconds(10));
249+
boolean failed = pollingCheck(statusQueryGetUri, "Failed", null, Duration.ofSeconds(15));
250250
assertTrue(failed, "Orchestration should have failed");
251251

252252
// Get the rewind URI and rewind the orchestration
@@ -256,11 +256,7 @@ public void rewindFailedOrchestration() throws InterruptedException {
256256
assertEquals(202, rewindResponse.getStatusCode(), "Rewind should return 202 Accepted");
257257

258258
// Wait for the orchestration to complete after rewind
259-
// Include "Failed" because the rewind may not take effect immediately
260-
Set<String> continueStates = new HashSet<>();
261-
continueStates.add("Running");
262-
continueStates.add("Failed");
263-
boolean completed = pollingCheck(statusQueryGetUri, "Completed", continueStates, Duration.ofSeconds(15));
259+
boolean completed = pollingCheck(statusQueryGetUri, "Completed", null, Duration.ofSeconds(30));
264260
assertTrue(completed, "Orchestration should complete after rewind");
265261

266262
// Verify the output contains the expected result

0 commit comments

Comments
 (0)