Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleene committed Nov 26, 2024
1 parent b2f8e54 commit 2b178c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sdk/src/test/java/io/opentdf/platform/sdk/TDFTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,8 @@ void testSimpleTDFWithAssertionWithHS256Failure() throws Exception {
Config.TDFReaderConfig readerConfig = Config.newTDFReaderConfig(
Config.withAssertionVerificationKeys(assertionVerificationKeys));

assertThrows(SDKException.class,
() -> tdf.loadTDF(new SeekableInMemoryByteChannel(tdfOutputStream.toByteArray()), kas, readerConfig),
"verify");
var e = assertThrows(SDKException.class, () -> tdf.loadTDF(new SeekableInMemoryByteChannel(tdfOutputStream.toByteArray()), kas, readerConfig));
assertThat(e.getMessage()).contains("verify");
}

@Test
Expand Down

0 comments on commit 2b178c2

Please sign in to comment.