Browse Source

test: stabilize career progress date-sensitive test

feat/message-recall
Zhang Shun 2 months ago
parent
commit
498512d694
  1. 2
      mydreamjob-server/src/test/java/com/mydreamjob/careerprogress/CareerProgressServiceTest.java

2
mydreamjob-server/src/test/java/com/mydreamjob/careerprogress/CareerProgressServiceTest.java

@ -190,7 +190,7 @@ class CareerProgressServiceTest {
anyLong(), anyCollection(), anyString())).thenReturn(List.of(s1, s2));
// Offer:一条 SENT 有效 + 一条 DRAFT(不应返回 DRAFT)
Offer sent = offer(14L, app.getId(), "SENT", "2026-09-05T23:59:59");
Offer sent = offer(14L, app.getId(), "SENT", LocalDateTime.now().plusDays(1).withNano(0).toString());
when(offerRepository.findByCandidateIdAndStatusNotOrderByCreatedAtDesc(anyLong(), anyString()))
.thenReturn(List.of(sent));

Loading…
Cancel
Save