You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/11/11 08:13:02 UTC
[camel-k] 01/02: Revert "chore(tests): Comments command_test.go test for logging invalid command parameters"
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch release-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b20d0d928a6d4132ed0d58e794f5b57b6952b142
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 11 09:11:13 2022 +0100
Revert "chore(tests): Comments command_test.go test for logging invalid command parameters"
This reverts commit 23e8b82fdf933dda76717e94eadbdf4085cf3b3d.
---
pkg/util/command_test.go | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pkg/util/command_test.go b/pkg/util/command_test.go
index 8ac7f4f6b..0831b2286 100644
--- a/pkg/util/command_test.go
+++ b/pkg/util/command_test.go
@@ -51,11 +51,10 @@ func TestRunAndLog(t *testing.T) {
assert.Nil(t, err)
}
-// Let's comment this because the Error logging might be different on different Linux distribution
-/*func TestRunAndLogInvalid(t *testing.T) {
+func TestRunAndLogInvalid(t *testing.T) {
cmd := exec.CommandContext(context.Background(), "/usr/bin/date", "-dsa")
err := RunAndLog(context.Background(), cmd, loggerInfo, loggerError)
assert.NotNil(t, err)
assert.Equal(t, "/usr/bin/date: invalid date ‘sa’: exit status 1", err.Error())
-}*/
+}