This is an automated email from the ASF dual-hosted git repository.
squakez pushed a commit to branch release-2.11.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-2.11.x by this push:
new 4474b6b4d fix(maven): remove ErrorContains assertion in
TestRunAndLogErrorMvn (#6870)
4474b6b4d is described below
commit 4474b6b4d4a8fff05670c5becff958141a9c1867
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) {