Skip to content

Commit a2cc1b1

Browse files
committed
fix TestValidTerminalMode
1 parent 23b1b90 commit a2cc1b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ssh/test/session_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func TestValidTerminalMode(t *testing.T) {
248248
t.Fatalf("session failed: %s", err)
249249
}
250250

251-
if _, err := io.WriteString(stdin, "echo SHELL $SHELL && stty -a && exit\n"); err != nil {
251+
if _, err := io.WriteString(stdin, "echo && echo SHELL $SHELL && stty -a && exit\n"); err != nil {
252252
t.Fatal(err)
253253
}
254254

@@ -258,7 +258,7 @@ func TestValidTerminalMode(t *testing.T) {
258258
}
259259

260260
if testing.Verbose() {
261-
t.Logf("echo SHELL $SHELL && stty -a && exit:\n%s", buf)
261+
t.Logf("echo && echo SHELL $SHELL && stty -a && exit:\n%s", buf)
262262
}
263263

264264
shellLine := regexp.MustCompile("(?m)^SHELL (.*)$").FindStringSubmatch(buf.String())

0 commit comments

Comments
 (0)