fix: fix a typo in azure/aci_test (#589)

Signed-off-by: KevinBetterQ <1093850932@qq.com>
This commit is contained in:
Kevin亓
2019-05-07 00:45:55 +08:00
committed by Brian Goff
parent 0583b5c4fd
commit cfa37871ab

View File

@@ -88,12 +88,12 @@ func TestMakeRegistryCredential(t *testing.T) {
cred, err := makeRegistryCredential(server, tc.authConfig)
if tc.shouldFail {
assert.Check(t, err != nil, "convertion should fail")
assert.Check(t, err != nil, "conversion should fail")
assert.Check(t, strings.Contains(err.Error(), tc.failMessage), "failed message is not expected")
return
}
assert.Check(t, err, "convertion should not fail")
assert.Check(t, err, "conversion should not fail")
assert.Check(t, cred != nil, "credential should not be nil")
assert.Check(t, is.Equal(server, cred.Server), "server doesn't match")
assert.Check(t, is.Equal(username, cred.Username), "username doesn't match")