From c0705ec40e41382bb2ab7f880bb682c2f0307c24 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Fri, 29 Sep 2023 12:54:51 +0200 Subject: [PATCH] fix: flaky TestCreateValidateRichParameters/ValidateString (#9928) --- 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 bdd229775e..7ad774edcc 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 })