Skip to content

Commit 4badf21

Browse files
committed
add buffer to time based test
1 parent d1d2d93 commit 4badf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void shutdownOnFailedTooLong(Vertx vertx, VertxTestContext testContext) {
9090

9191
this.operatorShutdownHandler.handleResponse(Pair.of(500, ""));
9292

93-
when(clock.instant()).thenAnswer(i -> Instant.now().plus(12, ChronoUnit.HOURS));
93+
when(clock.instant()).thenAnswer(i -> Instant.now().plus(12, ChronoUnit.HOURS).plusSeconds(60));
9494
try {
9595
this.operatorShutdownHandler.handleResponse(Pair.of(500, ""));
9696
} catch (RuntimeException e) {

0 commit comments

Comments
 (0)