mirror of
https://github.com/containers/skopeo.git
synced 2025-07-16 07:47:38 +00:00
Use assert.ErrorContains
...added in github.com/stretchr/testify 1.7.1. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
d2837c9e56
commit
ac4c291f76
@ -25,9 +25,8 @@ const (
|
||||
// Test that results of runSkopeo failed with nothing on stdout, and substring
|
||||
// within the error message.
|
||||
func assertTestFailed(t *testing.T, stdout string, err error, substring string) {
|
||||
assert.Error(t, err)
|
||||
assert.ErrorContains(t, err, substring)
|
||||
assert.Empty(t, stdout)
|
||||
assert.Contains(t, err.Error(), substring)
|
||||
}
|
||||
|
||||
func TestStandaloneSign(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user