Fix error handling in TestRun function
This commit is contained in:
parent
864b35ecf1
commit
92a06bd5c2
1 changed files with 3 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue