Skip to content

Commit 3cbc8b2

Browse files
committed
Fixed busted tests
1 parent dca75d2 commit 3cbc8b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/src/test/java/com/objectcomputing/checkins/services/fixture/ReviewPeriodFixture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ default ReviewPeriod createADefaultReviewPeriod(
4444
UUID templateId, UUID selfReviewTemplateId) {
4545
launchDate = launchDate.truncatedTo(ChronoUnit.DAYS);
4646

47-
LocalDateTime selfReviewCloseDate = launchDate.plusDays(2);
47+
LocalDateTime selfReviewCloseDate = launchDate.plusDays(4);
4848
LocalDateTime closeDate = selfReviewCloseDate.plusDays(2);
4949
LocalDateTime startDate = launchDate.minusDays(31);
5050
LocalDateTime endDate = launchDate.minusDays(1);

server/src/test/java/com/objectcomputing/checkins/services/reviews/ReviewPeriodControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ void testSelfReviewThreeDaysEmail() {
833833
// launch date, the self-review closes 4 days after the launch date.
834834
// So, to get the three day email, we just need to add 1 day to the
835835
// launch date.
836-
LocalDateTime launchDate = LocalDateTime.now().plusMinutes(1);
836+
LocalDateTime launchDate = LocalDateTime.now().truncatedTo(ChronoUnit.DAYS);
837837
checkSelfReviewEmail(launchDate, launchDate.plusDays(1),
838838
" closes in three days!");
839839
}
@@ -844,7 +844,7 @@ void testSelfReviewOneDayEmail() {
844844
// launch date, the self-review closes 4 days after the launch date.
845845
// So, to get the one day email, we just need to add 3 days to the
846846
// launch date.
847-
LocalDateTime launchDate = LocalDateTime.now().plusMinutes(1);
847+
LocalDateTime launchDate = LocalDateTime.now().truncatedTo(ChronoUnit.DAYS);
848848
checkSelfReviewEmail(launchDate, launchDate.plusDays(3),
849849
" closes in one day!");
850850
}

0 commit comments

Comments
 (0)