From 824f466f17e96c38f7bda95903ae614b5fe04268 Mon Sep 17 00:00:00 2001 From: spxtr Date: Mon, 27 Feb 2017 10:50:03 -0800 Subject: [PATCH] Change an Errorf to a Fatalf to prevent a panic. --- pkg/registry/core/service/rest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/service/rest_test.go b/pkg/registry/core/service/rest_test.go index 57dba0f1829..0103c8a1861 100644 --- a/pkg/registry/core/service/rest_test.go +++ b/pkg/registry/core/service/rest_test.go @@ -1012,7 +1012,7 @@ func TestServiceRegistryExternalTrafficBetaAnnotationHealthCheckNodePortUserAllo } created_svc, err := storage.Create(ctx, svc) if created_svc == nil || err != nil { - t.Errorf("Unexpected failure creating service %v", err) + t.Fatalf("Unexpected failure creating service: %v", err) } created_service := created_svc.(*api.Service) if !service.NeedsHealthCheck(created_service) {