Skip to content

fix: fix flaking Test_sshConfigExecEscape #14233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: flaking Test_sshConfigExecEscape
  • Loading branch information
ethanndickson committed Aug 12, 2024
commit d25b3fbf1b0f9cafa951305fdc9739abbcb52534
4 changes: 2 additions & 2 deletions cli/configssh_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func Test_sshConfigSplitOnCoderSection(t *testing.T) {

// This test tries to mimic the behavior of OpenSSH
// when executing e.g. a ProxyCommand.
// nolint:tparallel
func Test_sshConfigExecEscape(t *testing.T) {
t.Parallel()

Expand All @@ -154,11 +155,10 @@ func Test_sshConfigExecEscape(t *testing.T) {
{"tabs", "path with \ttabs", false},
{"newline fails", "path with \nnewline", true},
}
// nolint:paralleltest // Fixes a flake
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()

if runtime.GOOS == "windows" {
t.Skip("Windows doesn't typically execute via /bin/sh or cmd.exe, so this test is not applicable.")
}
Expand Down
Loading