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

Added Mockito timeout on test involving asynchronous code execution

parent 8f06f4c8
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ public class JobServiceTest {
verify(moveService, timeout(1000).times(1)).processMoveJob(any(), any());
verify(jobDAO, times(3)).updateJob(any(), any());
verify(jobDAO, timeout(1000).times(3)).updateJob(any(), any());
assertEquals(ExecutionPhase.EXECUTING, phases.get(0));
assertEquals(ExecutionPhase.EXECUTING, phases.get(1));
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