From 5c6bea8ff9ae58f0473860223abf362504e3aaa4 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sun, 1 Oct 2023 19:12:11 +0200 Subject: [PATCH] Ignore Maven POM cache warning in test Fixes #636. --- .../java/org/openrewrite/maven/RewriteCycloneDxIT.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/openrewrite/maven/RewriteCycloneDxIT.java b/src/test/java/org/openrewrite/maven/RewriteCycloneDxIT.java index 0d72931d..5916ae2f 100644 --- a/src/test/java/org/openrewrite/maven/RewriteCycloneDxIT.java +++ b/src/test/java/org/openrewrite/maven/RewriteCycloneDxIT.java @@ -78,7 +78,12 @@ void multi_module_with_independent_modules(MavenExecutionResult result) { .withFile("b-1.0-cyclonedx.xml") .exists(); - assertThat(result).out().warn().isEmpty(); + // ignore Maven POM cache warning, it may appear on some systems + // https://github.com/openrewrite/rewrite-maven-plugin/issues/636 + assertThat(result).out().warn() + .filteredOn(warn -> !"Unable to initialize RocksdbMavenPomCache, falling back to InMemoryMavenPomCache" + .equals(warn)) + .isEmpty(); } @MavenTest