Skip to content

Commit

Permalink
Replaced Fatalf with Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu Pandey committed May 17, 2019
1 parent 20f1e37 commit 2baddac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmd/minikube/cmd/config/unset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ package config
import "testing"

func TestUnsetConfig(t *testing.T) {
err := Set("dashboard", "true")
err = unset("dashboard")
propName := "dashboard"
propValue := "true"
err := Set(propName, propValue)
if err != nil {
t.Fatalf("Failed to unset property ")
t.Errorf("Failed to set the propert %q", propName)
}
err = unset(propName)
if err != nil {
t.Errorf("Failed to unset property ")
}
}

0 comments on commit 2baddac

Please sign in to comment.