From 92a06bd5c26cf3bfc36c76bdfd8819a58617dfbd Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Feb 2024 21:41:12 +0800 Subject: [PATCH] Fix error handling in TestRun function --- pipe/pipe_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipe/pipe_test.go b/pipe/pipe_test.go index 8de72c62..54ef7e9e 100644 --- a/pipe/pipe_test.go +++ b/pipe/pipe_test.go @@ -32,6 +32,9 @@ func TestRun(t *testing.T) { WithSid(sid) defer Close(ctx.ID()) output, err := ctx.Exec(map[string]interface{}{"placeholder": "translate\nhello world"}) + if err != nil { + t.Fatal(err) + } res := any.Of(output).Map().MapStrAny.Dot() assert.True(t, res.Has("global"))