mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: flaky TestCreateValidateRichParameters/ValidateString (#9928)
This commit is contained in:
@ -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
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user