Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: flaky TestCreateValidateRichParameters/ValidateString
  • Loading branch information
mtojek committed Sep 29, 2023
commit 262809ed8109aaae8fcb4eada3d5f55c4435eb09
9 changes: 6 additions & 3 deletions cli/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ func TestCreateValidateRichParameters(t *testing.T) {
match := matches[i]
value := matches[i+1]
pty.ExpectMatch(match)
pty.WriteLine(value)
if value != "" {
pty.WriteLine(value)
}
}
<-doneChan
})
Expand Down Expand Up @@ -481,7 +483,6 @@ func TestCreateValidateRichParameters(t *testing.T) {
match := matches[i]
value := matches[i+1]
pty.ExpectMatch(match)

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