Commit 4937b05a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39853 from xingzhou/typo

Automatic merge from submit-queue Fixed typo.
parents 73c900b5 695c2728
...@@ -50,6 +50,6 @@ func TestCreateConfigMap(t *testing.T) { ...@@ -50,6 +50,6 @@ func TestCreateConfigMap(t *testing.T) {
cmd.Run(cmd, []string{configMap.Name}) cmd.Run(cmd, []string{configMap.Name})
expectedOutput := "configmap/" + configMap.Name + "\n" expectedOutput := "configmap/" + configMap.Name + "\n"
if buf.String() != expectedOutput { 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())
} }
} }
...@@ -49,6 +49,6 @@ func TestCreateNamespace(t *testing.T) { ...@@ -49,6 +49,6 @@ func TestCreateNamespace(t *testing.T) {
cmd.Run(cmd, []string{namespaceObject.Name}) cmd.Run(cmd, []string{namespaceObject.Name})
expectedOutput := "namespace/" + namespaceObject.Name + "\n" expectedOutput := "namespace/" + namespaceObject.Name + "\n"
if buf.String() != expectedOutput { 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())
} }
} }
...@@ -57,7 +57,7 @@ func TestCreateSecretGeneric(t *testing.T) { ...@@ -57,7 +57,7 @@ func TestCreateSecretGeneric(t *testing.T) {
cmd.Run(cmd, []string{secretObject.Name}) cmd.Run(cmd, []string{secretObject.Name})
expectedOutput := "secret/" + secretObject.Name + "\n" expectedOutput := "secret/" + secretObject.Name + "\n"
if buf.String() != expectedOutput { 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())
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment