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

fix flaky test

parent d28a7617
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ class CollaborationITCase {
}
private void waitUntilCommandHasStatus(String commandId, CommandStatus status) {
await().atMost(600, TimeUnit.SECONDS).until(
await().atMost(70, TimeUnit.SECONDS).until(
() -> mongoOperations.findById(commandId, Command.class),
command -> command.getStatus() == status);
}
......@@ -331,7 +331,7 @@ class CollaborationITCase {
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