Skip to content

Commit c0705ec

Browse files
authored
fix: flaky TestCreateValidateRichParameters/ValidateString (#9928)
1 parent 2dd49cc commit c0705ec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cli/create_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,9 @@ func TestCreateValidateRichParameters(t *testing.T) {
446446
match := matches[i]
447447
value := matches[i+1]
448448
pty.ExpectMatch(match)
449-
pty.WriteLine(value)
449+
if value != "" {
450+
pty.WriteLine(value)
451+
}
450452
}
451453
<-doneChan
452454
})
@@ -481,7 +483,6 @@ func TestCreateValidateRichParameters(t *testing.T) {
481483
match := matches[i]
482484
value := matches[i+1]
483485
pty.ExpectMatch(match)
484-
485486
if value != "" {
486487
pty.WriteLine(value)
487488
}
@@ -519,7 +520,9 @@ func TestCreateValidateRichParameters(t *testing.T) {
519520
match := matches[i]
520521
value := matches[i+1]
521522
pty.ExpectMatch(match)
522-
pty.WriteLine(value)
523+
if value != "" {
524+
pty.WriteLine(value)
525+
}
523526
}
524527
<-doneChan
525528
})

0 commit comments

Comments
 (0)