fix: flaky TestCreateValidateRichParameters/ValidateString (#9928)

This commit is contained in:
Marcin Tojek
2023-09-29 12:54:51 +02:00
committed by GitHub
parent 2dd49cc0a7
commit c0705ec40e

View File

@ -446,7 +446,9 @@ func TestCreateValidateRichParameters(t *testing.T) {
match := matches[i] match := matches[i]
value := matches[i+1] value := matches[i+1]
pty.ExpectMatch(match) pty.ExpectMatch(match)
pty.WriteLine(value) if value != "" {
pty.WriteLine(value)
}
} }
<-doneChan <-doneChan
}) })
@ -481,7 +483,6 @@ func TestCreateValidateRichParameters(t *testing.T) {
match := matches[i] match := matches[i]
value := matches[i+1] value := matches[i+1]
pty.ExpectMatch(match) pty.ExpectMatch(match)
if value != "" { if value != "" {
pty.WriteLine(value) pty.WriteLine(value)
} }
@ -519,7 +520,9 @@ func TestCreateValidateRichParameters(t *testing.T) {
match := matches[i] match := matches[i]
value := matches[i+1] value := matches[i+1]
pty.ExpectMatch(match) pty.ExpectMatch(match)
pty.WriteLine(value) if value != "" {
pty.WriteLine(value)
}
} }
<-doneChan <-doneChan
}) })