Skip to content

Commit d25b3fb

Browse files
committed
fix: flaking Test_sshConfigExecEscape
1 parent e09ad1d commit d25b3fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/configssh_internal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func Test_sshConfigSplitOnCoderSection(t *testing.T) {
138138

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

@@ -154,11 +155,10 @@ func Test_sshConfigExecEscape(t *testing.T) {
154155
{"tabs", "path with \ttabs", false},
155156
{"newline fails", "path with \nnewline", true},
156157
}
158+
// nolint:paralleltest // Fixes a flake
157159
for _, tt := range tests {
158160
tt := tt
159161
t.Run(tt.name, func(t *testing.T) {
160-
t.Parallel()
161-
162162
if runtime.GOOS == "windows" {
163163
t.Skip("Windows doesn't typically execute via /bin/sh or cmd.exe, so this test is not applicable.")
164164
}

0 commit comments

Comments
 (0)