mirror of
https://github.com/containers/skopeo.git
synced 2025-06-24 13:52:27 +00:00
Merge pull request #1595 from mtrmac/ErrorContains
Use assert.ErrorContains
This commit is contained in:
commit
0bfe297fc1
@ -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