Skip to content

Commit a451a89

Browse files
committed
Use Fatal instead of panic for go tests.
1 parent 4ad49bb commit a451a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/metriconly/e2e_npd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestNPD(t *testing.T) {
7373
var err error
7474
computeService, err = gce.GetComputeClient()
7575
if err != nil {
76-
panic(fmt.Sprintf("Unable to create gcloud compute service using defaults. Make sure you are authenticated. %v", err))
76+
t.Fatalf("Unable to create gcloud compute service using defaults. Make sure you are authenticated. %v", err)
7777
}
7878

7979
if *artifactsDir != "" {

0 commit comments

Comments
 (0)