Skip to content

Commit

Permalink
Give time for state doc deletion to replicate
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Apr 30, 2024
1 parent 57e1c79 commit f5d15be
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ public void testCreateProvisionDeprovisionWorkflowWithFullAccess() throws Except
response = deleteWorkflow(fullAccessClient(), workflowId);
assertEquals(RestStatus.OK, TestHelpers.restStatus(response));

// Give time for state deletion to replicate
Thread.sleep(1000);

// Invoke status API with failure
exception = expectThrows(ResponseException.class, () -> getWorkflowStatus(fullAccessClient(), newWorkflowId, false));
assertEquals(RestStatus.NOT_FOUND.getStatus(), exception.getResponse().getStatusLine().getStatusCode());
Expand Down

0 comments on commit f5d15be

Please sign in to comment.