From 47674e7a9fddabd55340242793f786565a438133 Mon Sep 17 00:00:00 2001 From: translatenix <119817707+translatenix@users.noreply.github.com> Date: Thu, 22 Feb 2024 07:40:06 -0800 Subject: [PATCH] Remove assert that is specific to JDK implementation --- pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt b/pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt index 45640dba6..0aaed63c0 100644 --- a/pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt +++ b/pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt @@ -1178,8 +1178,8 @@ result = someLib.x val invalidCerts = FileTestUtils.writeCertificateWithMissingLines(tempDir) val err = assertThrows { 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 }