Skip to content

Commit

Permalink
chore: observe running then cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtsc committed Nov 24, 2023
1 parent ac99735 commit 08a387a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ public void testJobCancelled() {
jobObserver);

DefaultJobState jobState = new DefaultJobState();
jobState.jobStatus(JobStatus.INITIALIZING);
jobState.jobStatus(JobStatus.RUNNING);
Mockito.verify(jobObserver, Mockito.timeout(15000L).atLeast(1))
.onJobStateChanged(Mockito.eq(jobState));

this.driver.cancelJob(jobId, params);

UnitTestBase.sleep(90000L);
UnitTestBase.sleep(1500L);

DefaultJobState jobState2 = new DefaultJobState();
jobState2.jobStatus(JobStatus.CANCELLED);
Expand Down

0 comments on commit 08a387a

Please sign in to comment.