Skip to content

Commit c4de167

Browse files
committed
log failure at an interval
1 parent 112d7c3 commit c4de167

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/com/uid2/operator/OperatorShutdownHandlerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ void keysetKeyLogProgressAtInterval(VertxTestContext testContext) {
222222
long warnLogCount1 = logWatcher.list.stream().filter(log ->
223223
log.getFormattedMessage().contains("keyset keys sync still failing")).count();
224224

225-
when(clock.instant()).thenAnswer(i -> Instant.now().plus(30, ChronoUnit.MINUTES));
225+
when(clock.instant()).thenAnswer(i -> Instant.now().plus(5, ChronoUnit.MINUTES));
226226
this.operatorShutdownHandler.handleKeysetKeyRefreshResponse(false);
227227
long warnLogCount2 = logWatcher.list.stream().filter(log ->
228228
log.getFormattedMessage().contains("keyset keys sync still failing")).count();
229229
Assertions.assertEquals(warnLogCount1, warnLogCount2);
230230

231-
when(clock.instant()).thenAnswer(i -> Instant.now().plus(61, ChronoUnit.MINUTES));
231+
when(clock.instant()).thenAnswer(i -> Instant.now().plus(11, ChronoUnit.MINUTES));
232232
this.operatorShutdownHandler.handleKeysetKeyRefreshResponse(false);
233233
long warnLogCount3 = logWatcher.list.stream().filter(log ->
234234
log.getFormattedMessage().contains("keyset keys sync still failing")).count();

0 commit comments

Comments
 (0)