Fix tests.
parent
23d906b577
commit
716cc2e5ec
|
@ -21,7 +21,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"k8s.io/minikube/cli/tests"
|
||||
"k8s.io/minikube/pkg/minikube/tests"
|
||||
)
|
||||
|
||||
func runCommand(f func(*cobra.Command, []string)) {
|
||||
|
|
|
@ -82,7 +82,7 @@ func (m mockHost) RunSSHCommand(cmd string) (string, error) {
|
|||
|
||||
func TestStartCluster(t *testing.T) {
|
||||
h := mockHost{}
|
||||
err := StartCluster(h)
|
||||
err := StartCluster(h, KubernetesConfig{})
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting cluster: %s", err)
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ func TestStartCluster(t *testing.T) {
|
|||
|
||||
func TestStartClusterError(t *testing.T) {
|
||||
h := mockHost{Error: "error"}
|
||||
err := StartCluster(h)
|
||||
err := StartCluster(h, KubernetesConfig{})
|
||||
if err == nil {
|
||||
t.Fatal("Error not thrown starting cluster.")
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package cluster
|
|||
var startCommand = `
|
||||
sudo killall localkube || true
|
||||
# Download and install localkube, if it doesn't exist yet.
|
||||
if [ ! -e /usr/local/bin/localkube2 ]; then
|
||||
if [ ! -e /usr/local/bin/localkube ]; then
|
||||
sudo curl -L %s -o /usr/local/bin/localkube
|
||||
sudo chmod a+x /usr/local/bin/localkube;
|
||||
fi
|
|
@ -4,7 +4,7 @@ import (
|
|||
"io/ioutil"
|
||||
"log"
|
||||
|
||||
"k8s.io/minikube/cli/constants"
|
||||
"k8s.io/minikube/pkg/minikube/constants"
|
||||
)
|
||||
|
||||
func MakeTempDir() string {
|
Loading…
Reference in New Issue