Skip to content

Commit

Permalink
Change an Errorf to a Fatalf to prevent a panic.
Browse files Browse the repository at this point in the history
  • Loading branch information
spxtr committed Feb 27, 2017
1 parent 77733c2 commit 824f466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/core/service/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 824f466

Please sign in to comment.