Convert to assert.NilError

Using:

  git grep -l '^\s\+assert\.Check(t, err)$' | \
    xargs sed -i -e 's/^\(\s\+assert\)\.Check(t, err)$/\1.NilError(t, err)/'

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2018-03-06 14:44:13 -05:00
parent 0f11a310fd
commit baf65a5502
46 changed files with 173 additions and 173 deletions

View File

@ -42,7 +42,7 @@ func TestValidateAllowsXTopLevelFields(t *testing.T) {
}
err := Validate(config, "3.4")
assert.Check(t, err)
assert.NilError(t, err)
}
func TestValidateSecretConfigNames(t *testing.T) {
@ -61,7 +61,7 @@ func TestValidateSecretConfigNames(t *testing.T) {
}
err := Validate(config, "3.5")
assert.Check(t, err)
assert.NilError(t, err)
}
func TestValidateInvalidVersion(t *testing.T) {