Commit fe7d158e authored by zhangxiaoyu-zidif's avatar zhangxiaoyu-zidif

fix error message for scale

parent a5b4899a
...@@ -257,7 +257,7 @@ func TestValidateReplicationController(t *testing.T) { ...@@ -257,7 +257,7 @@ func TestValidateReplicationController(t *testing.T) {
t.Errorf("unexpected error: %v (%s)", err, test.test) t.Errorf("unexpected error: %v (%s)", err, test.test)
} }
if err == nil && test.expectError { if err == nil && test.expectError {
t.Errorf("unexpected non-error: %v (%s)", err, test.test) t.Errorf("expected an error: %v (%s)", err, test.test)
} }
} }
} }
...@@ -520,7 +520,7 @@ func TestValidateJob(t *testing.T) { ...@@ -520,7 +520,7 @@ func TestValidateJob(t *testing.T) {
t.Errorf("unexpected error: %v (%s)", err, test.test) t.Errorf("unexpected error: %v (%s)", err, test.test)
} }
if err == nil && test.expectError { if err == nil && test.expectError {
t.Errorf("unexpected non-error: %v (%s)", err, test.test) t.Errorf("expected an error: %v (%s)", err, test.test)
} }
} }
} }
...@@ -781,7 +781,7 @@ func TestValidateDeployment(t *testing.T) { ...@@ -781,7 +781,7 @@ func TestValidateDeployment(t *testing.T) {
t.Errorf("unexpected error: %v (%s)", err, test.test) t.Errorf("unexpected error: %v (%s)", err, test.test)
} }
if err == nil && test.expectError { if err == nil && test.expectError {
t.Errorf("unexpected non-error: %v (%s)", err, test.test) t.Errorf("expected an error: %v (%s)", err, test.test)
} }
} }
} }
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