Skip to content
Snippets Groups Projects
Commit f6a586b1 authored by OZGCloud's avatar OZGCloud
Browse files

fix flaky test

parent d28a7617
Branches
Tags
No related merge requests found
...@@ -238,7 +238,7 @@ class CollaborationITCase { ...@@ -238,7 +238,7 @@ class CollaborationITCase {
} }
private void waitUntilCommandHasStatus(String commandId, CommandStatus status) { private void waitUntilCommandHasStatus(String commandId, CommandStatus status) {
await().atMost(600, TimeUnit.SECONDS).until( await().atMost(70, TimeUnit.SECONDS).until(
() -> mongoOperations.findById(commandId, Command.class), () -> mongoOperations.findById(commandId, Command.class),
command -> command.getStatus() == status); command -> command.getStatus() == status);
} }
...@@ -331,7 +331,7 @@ class CollaborationITCase { ...@@ -331,7 +331,7 @@ class CollaborationITCase {
waitUntilCommandHasStatus(command.getId(), CommandStatus.ERROR); waitUntilCommandHasStatus(command.getId(), CommandStatus.ERROR);
assertThat(loadCollaborationRequest(vorgangId)).isEmpty(); await().atMost(70, TimeUnit.SECONDS).untilAsserted(() -> assertThat(loadCollaborationRequest(vorgangId)).isEmpty());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment