Merge pull request #579 from trheyi/main

Fix error handling in process_test.go
This commit is contained in:
Max 2024-02-15 14:58:59 +08:00 committed by GitHub
commit d05add5eb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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