Commit d5cca0d4
d5cca0d4e2ddMerged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
fix TestExecError for busybox
Details
- Commit
- d5cca0d4e2dd
- Parent
- b0ee91d51ea2
pkg/template/extra_test.gomodifiedView file
@@ -90,9 +90,8 @@
9090
}9191
9292
func (s *ExtraTestSuite) TestExecError() {93-
res, err := Exec("pwd", []interface{}{"123"})94-
expected := &exec.ExitError{}95-
s.Require().ErrorAs(err, &expected)93+
res, err := Exec(s.T().Name(), []interface{}{})94+
s.Require().Error(err)9695
s.Require().Empty(res)9796
}9897