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 })