Skip to content

Commit

Permalink
Merge pull request #6948 from govargo/fix-testcreatesshshell
Browse files Browse the repository at this point in the history
Fix TestCreateSSHShell failulre
  • Loading branch information
medyagh authored Mar 8, 2020
2 parents e6ba335 + b0e7937 commit 39705bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/minikube/machine/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"github.com/docker/machine/libmachine/drivers"
"github.com/docker/machine/libmachine/host"
"github.com/docker/machine/libmachine/provision"
"github.com/docker/machine/libmachine/ssh"
"github.com/docker/machine/libmachine/state"
"github.com/spf13/viper"
"k8s.io/minikube/pkg/minikube/config"
Expand Down Expand Up @@ -412,6 +413,8 @@ func TestGetHostStatus(t *testing.T) {

func TestCreateSSHShell(t *testing.T) {
api := tests.NewMockAPI(t)
// Setting the default ssh client to native for test stability.
ssh.SetDefaultClient(ssh.Native)

s, _ := tests.NewSSHServer(t)
port, err := s.Start()
Expand Down

0 comments on commit 39705bc

Please sign in to comment.