提交 ee764c8d 编写于 作者: S Sharif Elgamal

add comment

上级 96f34ea0
...@@ -821,6 +821,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) { ...@@ -821,6 +821,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) {
if err != nil { if err != nil {
t.Errorf("failed to run an ssh command. args %q : %v", rr.Command(), err) 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 { 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()) t.Errorf("expected minikube ssh command output to be -%q- but got *%q*. args %q", want, rr.Stdout.String(), rr.Command())
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册