Browse Source

ssh/tailssh_test: skip TestSSH/stdin in CI

Updates #4051

Signed-off-by: Maisem Ali <[email protected]>
Maisem Ali 4 năm trước cách đây
mục cha
commit
b775df0b57
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      ssh/tailssh/tailssh_test.go

+ 5 - 0
ssh/tailssh/tailssh_test.go

@@ -292,6 +292,11 @@ func TestSSH(t *testing.T) {
 	})
 	})
 
 
 	t.Run("stdin", func(t *testing.T) {
 	t.Run("stdin", func(t *testing.T) {
+		if os.Getenv("CI") == "true" {
+			// CI env variable is set by GitHub.
+			// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
+			t.Skip("Skipping for now; see https://github.com/tailscale/tailscale/issues/4051")
+		}
 		cmd := execSSH("cat")
 		cmd := execSSH("cat")
 		var outBuf bytes.Buffer
 		var outBuf bytes.Buffer
 		cmd.Stdout = &outBuf
 		cmd.Stdout = &outBuf