mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 14:25:43 +00:00
Merge pull request #3718 from Kvasscn/kata_dev_fix_utils_assert_msg
virtcontainers: Remove duplicated assert messages in utils test code
This commit is contained in:
commit
7db9bef72c
@ -297,9 +297,9 @@ func TestBuildSocketPath(t *testing.T) {
|
||||
msg := fmt.Sprintf("test[%d]: %+v", i, d)
|
||||
|
||||
if d.valid {
|
||||
assert.NoErrorf(err, "test %d, data %+v", i, d, msg)
|
||||
assert.NoError(err, msg)
|
||||
} else {
|
||||
assert.Errorf(err, "test %d, data %+v", i, d, msg)
|
||||
assert.Error(err, msg)
|
||||
}
|
||||
|
||||
assert.NotNil(result, msg)
|
||||
|
Loading…
Reference in New Issue
Block a user