Skip to content

Commit

Permalink
Remove assert that is specific to JDK implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
odenix committed Feb 22, 2024
1 parent 0e2825f commit 93b2dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,8 @@ result = someLib.x
val invalidCerts = FileTestUtils.writeCertificateWithMissingLines(tempDir)
val err = assertThrows<CliException> { evalModuleThatImportsPackage(invalidCerts) }
assertThat(err)
// no assert for detail message because it differs between JDK implementations
.hasMessageContaining("Error parsing CA certificate file `${invalidCerts.pathString}`:")
.hasMessageContaining("not enough content")
.hasMessageNotContainingAny("java.", "sun.") // class names have been filtered out
}

Expand Down

0 comments on commit 93b2dde

Please sign in to comment.