Skip to content

Commit f59ce4d

Browse files
committed
refine tests
1 parent b95cafe commit f59ce4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.slf4j.LoggerFactory;
2020
import software.amazon.awssdk.utils.Pair;
2121

22+
import java.security.Permission;
2223
import java.time.Clock;
2324
import java.time.Duration;
2425
import java.time.Instant;
@@ -61,6 +62,7 @@ void shutdownOnAttestFailure(VertxTestContext testContext) {
6162
this.operatorShutdownHandler.handleAttestResponse(Pair.of(AttestationResponseCode.AttestationFailure, "Unauthorized"));
6263
} catch (RuntimeException e) {
6364
verify(shutdownService).Shutdown(1);
65+
String message = logWatcher.list.get(0).getFormattedMessage();
6466
Assertions.assertEquals("core attestation failed with AttestationFailure, shutting down operator, core response: Unauthorized", logWatcher.list.get(0).getFormattedMessage());
6567
testContext.completeNow();
6668
}

0 commit comments

Comments
 (0)