Skip to content
Snippets Groups Projects
Commit b19603a4 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added Thread.sleep to avoid issue with flacky test

parent 728d2057
Branches
Tags
No related merge requests found
...@@ -205,6 +205,12 @@ public class JobServiceTest { ...@@ -205,6 +205,12 @@ public class JobServiceTest {
verify(moveService, timeout(1000).times(1)).processMoveJob(any(), any()); verify(moveService, timeout(1000).times(1)).processMoveJob(any(), any());
verify(jobDAO, timeout(1000).times(3)).updateJob(any(), any()); verify(jobDAO, timeout(1000).times(3)).updateJob(any(), any());
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
}
assertEquals(ExecutionPhase.EXECUTING, phases.get(0)); assertEquals(ExecutionPhase.EXECUTING, phases.get(0));
assertEquals(ExecutionPhase.EXECUTING, phases.get(1)); assertEquals(ExecutionPhase.EXECUTING, phases.get(1));
assertEquals(ExecutionPhase.COMPLETED, phases.get(2)); assertEquals(ExecutionPhase.COMPLETED, phases.get(2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment