Skip to content

Commit

Permalink
#30367 Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgambarios committed Nov 20, 2024
1 parent 32ac46e commit 730d5f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ void test_detectAndMarkAbandoned() throws Exception {
assertEquals(createdJobIds, processedJobIds, "Processed jobs don't match created jobs");

// Verify no more jobs are detected
assertNull(jobQueue.detectAndMarkAbandoned(
assertTrue(jobQueue.detectAndMarkAbandoned(
Duration.ofMinutes(1),
JobState.RUNNING, JobState.CANCEL_REQUESTED, JobState.CANCELLING
), "There should be no more jobs abandoned");
JobState.RUNNING, JobState.CANCEL_REQUESTED, JobState.CANCELLING).isEmpty(),
"There should be no more jobs abandoned");

// Verify all jobs are in ABANDONED state
for (String jobId : createdJobIds) {
Expand Down

0 comments on commit 730d5f1

Please sign in to comment.