Skip to content

Commit 73402fc

Browse files
fix: fix flaking Test_sshConfigExecEscape (#14233)
Fixes #13962.
1 parent ba4186d commit 73402fc

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy