@@ -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