Fix tests
parent
3a5406f79e
commit
99165fd73a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue