diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go index 4655e20094d..becfb405bfb 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go @@ -419,7 +419,7 @@ func (tc *patchTestCase) Run(t *testing.T) { if tc.expectedTries > 0 { if tc.expectedTries != testPatcher.numUpdates { - t.Errorf("%s: expected %d tries, got %d", tc.expectedTries, testPatcher.numUpdates) + t.Errorf("%s: expected %d tries, got %d", tc.name, tc.expectedTries, testPatcher.numUpdates) } }