From 5cf5a377fd63b6266919c2969dd4212ee4465cae Mon Sep 17 00:00:00 2001 From: Pavel Okhlopkov Date: Fri, 15 Nov 2024 16:25:35 +0300 Subject: [PATCH] fix test Signed-off-by: Pavel Okhlopkov --- pkg/executor/executor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/executor/executor_test.go b/pkg/executor/executor_test.go index 11ca519e..16c43c6e 100644 --- a/pkg/executor/executor_test.go +++ b/pkg/executor/executor_test.go @@ -107,7 +107,7 @@ func TestRunAndLogLines(t *testing.T) { _, err := ex.RunAndLogLines(map[string]string{"a": "b"}) assert.NoError(t, err) - assert.Equal(t, buf.String(), `{"level":"debug","msg":"Executing command 'echo [\"a\",\"b\",\"c\"]' in '' dir","source":"executor/executor.go:1001","a":"b","time":"2006-01-02T15:04:05Z"}`+"\n"+ + assert.Equal(t, buf.String(), `{"level":"debug","msg":"Executing command 'echo [\"a\",\"b\",\"c\"]' in '' dir","source":"executor/executor.go:101","a":"b","time":"2006-01-02T15:04:05Z"}`+"\n"+ `{"level":"debug","msg":"json log line not map[string]interface{}","source":"executor/executor.go:170","a":"b","line":["a","b","c"],"output":"stdout","time":"2006-01-02T15:04:05Z"}`+"\n"+ `{"level":"info","msg":"[\"a\",\"b\",\"c\"]\n","source":"executor/executor.go:173","a":"b","output":"stdout","time":"2006-01-02T15:04:05Z"}`+"\n")