File tree Expand file tree Collapse file tree
src/test/java/com/uid2/operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,17 +190,11 @@ void shutdownOnKeysetKeyFailedTooLong(VertxTestContext testContext) {
190190
191191 @ Test
192192 void keysetKeyRecoverOnSuccess (VertxTestContext testContext ) {
193- ListAppender <ILoggingEvent > logWatcher = new ListAppender <>();
194- logWatcher .start ();
195- ((Logger ) LoggerFactory .getLogger (OperatorShutdownHandler .class )).addAppender (logWatcher );
196-
197193 this .operatorShutdownHandler .handleKeysetKeyRefreshResponse (false );
198194 when (clock .instant ()).thenAnswer (i -> Instant .now ().plus (3 , ChronoUnit .DAYS ));
195+
199196 this .operatorShutdownHandler .handleKeysetKeyRefreshResponse (true );
200197
201- Assertions .assertTrue (logWatcher .list .stream ().anyMatch (log ->
202- log .getFormattedMessage ().contains ("keyset keys sync recovered" )));
203-
204198 when (clock .instant ()).thenAnswer (i -> Instant .now ().plus (7 , ChronoUnit .DAYS ));
205199 assertDoesNotThrow (() -> {
206200 this .operatorShutdownHandler .handleKeysetKeyRefreshResponse (false );
You can’t perform that action at this time.
0 commit comments