Skip to content

Commit 4f8ac2d

Browse files
committed
Fix rewind e2e test
1 parent f17d006 commit 4f8ac2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ 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
259260
Set<String> continueStates = new HashSet<>();
260261
continueStates.add("Running");
262+
continueStates.add("Failed");
261263
boolean completed = pollingCheck(statusQueryGetUri, "Completed", continueStates, Duration.ofSeconds(15));
262264
assertTrue(completed, "Orchestration should complete after rewind");
263265

0 commit comments

Comments
 (0)