cleanup: error message typos in setup_test.go (#3065)

Signed-off-by: zhengguang zhu <zhengguang.zhu@daocloud.io>
This commit is contained in:
dzzg 2019-07-29 22:58:45 +08:00 committed by Yong Tang
parent c3516279ed
commit 7122fda09d

View file

@ -105,12 +105,12 @@ func TestSetupEtcd(t *testing.T) {
if !test.shouldErr {
if test.username != "" {
if etcd.Client.Username != test.username {
t.Errorf("Etcd username not correctly set for input %s. Excpeted: '%+v', actual: '%+v'", test.input, test.username, etcd.Client.Username)
t.Errorf("Etcd username not correctly set for input %s. Expected: '%+v', actual: '%+v'", test.input, test.username, etcd.Client.Username)
}
}
if test.password != "" {
if etcd.Client.Password != test.password {
t.Errorf("Etcd password not correctly set for input %s. Excpeted: '%+v', actual: '%+v'", test.input, test.password, etcd.Client.Password)
t.Errorf("Etcd password not correctly set for input %s. Expected: '%+v', actual: '%+v'", test.input, test.password, etcd.Client.Password)
}
}
}