From 262809ed8109aaae8fcb4eada3d5f55c4435eb09 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Fri, 29 Sep 2023 12:35:04 +0200 Subject: [PATCH] fix: flaky TestCreateValidateRichParameters/ValidateString --- cli/create_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cli/create_test.go b/cli/create_test.go index bdd229775ec68..7ad774edcc7cb 100644 --- a/cli/create_test.go +++ b/cli/create_test.go @@ -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 }) @@ -481,7 +483,6 @@ func TestCreateValidateRichParameters(t *testing.T) { match := matches[i] value := matches[i+1] pty.ExpectMatch(match) - if value != "" { pty.WriteLine(value) } @@ -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 })