diff --git a/pkg/registry/core/service/ipallocator/controller/repairip_test.go b/pkg/registry/core/service/ipallocator/controller/repairip_test.go index 45397bc3253..37dc56b1703 100644 --- a/pkg/registry/core/service/ipallocator/controller/repairip_test.go +++ b/pkg/registry/core/service/ipallocator/controller/repairip_test.go @@ -349,8 +349,7 @@ func TestRepairServiceIP(t *testing.T) { } } - err := r.runOnce() - if err != nil { + if err := r.runOnce(); err != nil { t.Fatal(err) }