Skip to content

Commit

Permalink
Fix incorrect test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
IndeedSi committed Oct 12, 2020
1 parent df3fabc commit c2ced5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/cronutils/Issue402Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public void test() {

Optional<ZonedDateTime> lastExecution = execution.lastExecution(currentDateTime);
assertTrue(lastExecution.isPresent());
assertEquals(ZonedDateTime.of(LocalDate.of(2013, 3, 1), LocalTime.MIDNIGHT, ZoneOffset.UTC), nextExecution.get());
assertEquals(ZonedDateTime.of(LocalDate.of(2013, 3, 1), LocalTime.MIDNIGHT, ZoneOffset.UTC), lastExecution.get());

lastExecution = execution.lastExecution(nextExecution.get());
assertTrue(lastExecution.isPresent());
assertEquals(ZonedDateTime.of(LocalDate.of(2013, 3, 1), LocalTime.MIDNIGHT, ZoneOffset.UTC), nextExecution.get());
assertEquals(ZonedDateTime.of(LocalDate.of(2013, 3, 1), LocalTime.MIDNIGHT, ZoneOffset.UTC), lastExecution.get());
}
}

0 comments on commit c2ced5d

Please sign in to comment.