File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
server/src/test/java/com/objectcomputing/checkins/services Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments