Merge pull request #579 from trheyi/main
Fix error handling in process_test.go
This commit is contained in:
commit
d05add5eb7
1 changed files with 4 additions and 1 deletions
|
|
@ -20,8 +20,11 @@ func TestProcessPipes(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
output, err := p.Exec()
|
output, err := p.Exec()
|
||||||
utils.Dump(output)
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
utils.Dump(output)
|
||||||
res := any.Of(output).Map().MapStrAny.Dot()
|
res := any.Of(output).Map().MapStrAny.Dot()
|
||||||
assert.True(t, res.Has("global"))
|
assert.True(t, res.Has("global"))
|
||||||
assert.True(t, res.Has("input"))
|
assert.True(t, res.Has("input"))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue