Skip to content

Commit c991fe5

Browse files
author
Himanshu Pandey
committed
Replaced Fatalf with Errorf
1 parent 97f0472 commit c991fe5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmd/minikube/cmd/config/unset_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ package config
1919
import "testing"
2020

2121
func TestUnsetConfig(t *testing.T) {
22-
err := Set("dashboard", "true")
23-
err = unset("dashboard")
22+
propName := "dashboard"
23+
propValue := "true"
24+
err := Set(propName, propValue)
2425
if err != nil {
25-
t.Fatalf("Failed to unset property ")
26+
t.Errorf("Failed to set the propert %q", propName)
27+
}
28+
err = unset(propName)
29+
if err != nil {
30+
t.Errorf("Failed to unset property ")
2631
}
2732
}

0 commit comments

Comments
 (0)