Skip to content

Commit

Permalink
Ignore Maven POM cache warning in test (#637)
Browse files Browse the repository at this point in the history
Fixes #636.
  • Loading branch information
Bananeweizen authored Oct 1, 2023
1 parent 12ff85a commit a6cf839
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/java/org/openrewrite/maven/RewriteCycloneDxIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6cf839

Please sign in to comment.