Fixed typo.

Fixed variable sequence typo in kubectl create sub-command tests.
This commit is contained in:
Xing Zhou 2017-01-13 12:54:15 +08:00
parent 31483bf546
commit 695c27287b
3 changed files with 3 additions and 3 deletions

View File

@ -50,6 +50,6 @@ func TestCreateConfigMap(t *testing.T) {
cmd.Run(cmd, []string{configMap.Name})
expectedOutput := "configmap/" + configMap.Name + "\n"
if buf.String() != expectedOutput {
t.Errorf("expected output: %s, but got: %s", buf.String(), expectedOutput)
t.Errorf("expected output: %s, but got: %s", expectedOutput, buf.String())
}
}

View File

@ -49,6 +49,6 @@ func TestCreateNamespace(t *testing.T) {
cmd.Run(cmd, []string{namespaceObject.Name})
expectedOutput := "namespace/" + namespaceObject.Name + "\n"
if buf.String() != expectedOutput {
t.Errorf("expected output: %s, but got: %s", buf.String(), expectedOutput)
t.Errorf("expected output: %s, but got: %s", expectedOutput, buf.String())
}
}

View File

@ -57,7 +57,7 @@ func TestCreateSecretGeneric(t *testing.T) {
cmd.Run(cmd, []string{secretObject.Name})
expectedOutput := "secret/" + secretObject.Name + "\n"
if buf.String() != expectedOutput {
t.Errorf("expected output: %s, but got: %s", buf.String(), expectedOutput)
t.Errorf("expected output: %s, but got: %s", expectedOutput, buf.String())
}
}