diff --git a/test/integration/functional_test.go b/test/integration/functional_test.go index a22cb6f0afa7c8b1cd6fc846d2a63f1c66fd3f92..9a2685025ea776f91c7b3afc1a737963780b2e76 100644 --- a/test/integration/functional_test.go +++ b/test/integration/functional_test.go @@ -821,6 +821,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) { if err != nil { t.Errorf("failed to run an ssh command. args %q : %v", rr.Command(), err) } + // trailing whitespace differs between native and external SSH clients, so let's trim it and call it a day if strings.TrimSpace(rr.Stdout.String()) != want { t.Errorf("expected minikube ssh command output to be -%q- but got *%q*. args %q", want, rr.Stdout.String(), rr.Command()) }