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:
Archana Shinde 2022-02-18 06:07:16 -08:00 committed by GitHub
commit 7db9bef72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)