Fix tests

pull/7749/head
Thomas Stromberg 2020-04-17 10:09:22 -07:00
parent 3a5406f79e
commit 99165fd73a
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,6 @@ import (
)
const (
defaultK8sClientTimeout = 60 * time.Second
// DefaultWait is the default wait time, in seconds
DefaultWait = 2
// DefaultInterval is the default interval, in seconds

View File

@ -239,7 +239,8 @@ func TestGetStoragev1(t *testing.T) {
t.Fatalf(err.Error())
}
_, err = GetStoragev1(configfile.Name())
// context name is hardcoded by mockK8sConfig
_, err = GetStoragev1("minikube")
if err != nil && !test.err {
t.Fatalf("Unexpected err: %v for test: %v", err, test.description)
}