Fix Errorf arguments in tests

This commit is contained in:
Maciej Szulik 2019-09-17 17:04:20 +02:00
parent 24b1e7f27f
commit f8a4a5f267
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -272,10 +272,10 @@ func TestSetCRDCondition(t *testing.T) {
}
for i := range tc.expectedcrdCondition {
if !IsCRDConditionEquivalent(&tc.expectedcrdCondition[i], &crd.Status.Conditions[i]) {
t.Errorf("%v expected %v, got %v", tc.name, tc.expectedcrdCondition, crd.Status.Conditions)
t.Errorf("%v expected %v, got %v", tc.name, tc.expectedcrdCondition[i], crd.Status.Conditions[i])
}
if crd.Status.Conditions[i].LastTransitionTime.IsZero() {
t.Errorf("%q lastTransitionTime should not be null: %v", tc.name, i, crd.Status.Conditions)
t.Errorf("%q/%d lastTransitionTime should not be null: %v", tc.name, i, crd.Status.Conditions[i])
}
}
}