Skip to content

Commit e1524da

Browse files
committed
Account for the fact that the pulse email may or may not be sent.
1 parent 35f67db commit e1524da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/test/java/com/objectcomputing/checkins/services/request_notifications/CheckServicesImplTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.Collections;
2525
import java.util.List;
2626

27+
import static org.junit.jupiter.api.Assertions.assertTrue;
2728
import static org.junit.jupiter.api.Assertions.assertEquals;
2829

2930
@Property(name = "replace.mailjet.factory", value = StringUtils.TRUE)
@@ -59,12 +60,11 @@ void sendScheduledEmails() {
5960
// Send emails for today
6061
checkServices.sendScheduledEmails();
6162

62-
// One for the feedback request and one for the pulse email.
63-
assertEquals(2, emailSender.events.size());
63+
// One for the feedback request and, possibly, one for the pulse email.
64+
assertTrue(emailSender.events.size() > 0);
6465
assertEquals(pdlMemberProfile.getWorkEmail(),
6566
emailSender.events.get(0).get(2));
6667
assertEquals("Feedback request",
6768
emailSender.events.get(0).get(3));
68-
System.out.println(emailSender.events.get(0));
6969
}
7070
}

0 commit comments

Comments
 (0)