diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java b/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java index 3d4949591c..be094e11b8 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java @@ -84,10 +84,9 @@ void detectsErrorsSuccessfully( .execute(new FakeMaven.Verify()), "Program with noname attributes should have failed or error, but it didn't" ); - final String message = this.getMessage(out, "Errors identified", temp.toString()); MatcherAssert.assertThat( "Errors message should have program name and error line number", - message, + this.getMessage(out, "Errors identified", temp.toString()), Matchers.matchesPattern(this.createRegEx(temp, "Errors identified")) ); }