Skip to content

Commit

Permalink
Compatibility test for priority
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Sep 27, 2024
1 parent 7f53146 commit 8aed4fe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ private void doJDBCRepositoryCompatibilityTestUsingData(String data) {
Execution storedExecution = (jdbcTaskRepository.getExecution(taskInstance)).get();
assertThat(storedExecution.getExecutionTime(), is(now));

// priority=true
assertThat(jdbcTaskRepository.getDue(now, POLLING_LIMIT, true), hasSize(1));
// priority=false
final List<Execution> due = jdbcTaskRepository.getDue(now, POLLING_LIMIT, false);
assertThat(due, hasSize(1));
final Optional<Execution> pickedExecution = jdbcTaskRepository.pick(due.get(0), now);
Expand Down

0 comments on commit 8aed4fe

Please sign in to comment.