From 2a867c070908d414b2d2f88163e0ab73f034ff0b Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 15 Feb 2024 14:58:19 +0800 Subject: [PATCH] Fix error handling in process_test.go --- pipe/process_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipe/process_test.go b/pipe/process_test.go index b79ba95b..424ee30f 100644 --- a/pipe/process_test.go +++ b/pipe/process_test.go @@ -20,8 +20,11 @@ func TestProcessPipes(t *testing.T) { } output, err := p.Exec() - utils.Dump(output) + if err != nil { + t.Fatal(err) + } + utils.Dump(output) res := any.Of(output).Map().MapStrAny.Dot() assert.True(t, res.Has("global")) assert.True(t, res.Has("input"))