Fix error handling in TestRun function

This commit is contained in:
Max 2024-02-14 21:41:12 +08:00
parent 864b35ecf1
commit 92a06bd5c2

View file

@ -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"))