This is an automated email from the ASF dual-hosted git repository.
squakez pushed a commit to branch release-2.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-2.10.x by this push:
new 395f3ad92 fix(maven): remove ErrorContains assertion in
TestRunAndLogErrorMvn (#6870)
395f3ad92 is described below
commit 395f3ad92697f7eb66e173297a637d92a81a6d40
Author: Ankit raj sharma <[email protected]>
AuthorDate: Thu Oct 8 01:53:43 2026 +0530
fix(maven): remove ErrorContains assertion in TestRunAndLogErrorMvn (#6870)
Remove the ErrorContains assertion in TestRunAndLogErrorMvn to avoid
asserting
the specific failure reason string from Maven's failure banner, keeping the
assertion focused on the error occurrence.
Signed-off-by: Ankit raj sharma <[email protected]>
---
pkg/util/maven/maven_log_test.go | 1 -
1 file changed, 1 deletion(-)
diff --git a/pkg/util/maven/maven_log_test.go b/pkg/util/maven/maven_log_test.go
index dbd3307d7..e759eeab6 100644
--- a/pkg/util/maven/maven_log_test.go
+++ b/pkg/util/maven/maven_log_test.go
@@ -38,7 +38,6 @@ func TestRunAndLogErrorMvn(t *testing.T) {
err := util.RunAndLog(context.Background(), cmd, LogHandler, LogHandler)
require.Error(t, err)
- require.ErrorContains(t, err, "The goal you specified requires a
project to execute but there is no POM in this directory")
}
func TestParseLog(t *testing.T) {