From 9cc7464ad49c60552abeb829f25d677fcb1deace Mon Sep 17 00:00:00 2001 From: Brooke Hamilton Date: Mon, 1 Jul 2024 20:43:02 +0000 Subject: [PATCH] Remove output check before final rendering of test model Fixes issue #7721 Signed-off-by: Brooke Hamilton --- pkg/cli/prompt/text/text_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/cli/prompt/text/text_test.go b/pkg/cli/prompt/text/text_test.go index f64fc9d337..ba1ea56015 100644 --- a/pkg/cli/prompt/text/text_test.go +++ b/pkg/cli/prompt/text/text_test.go @@ -137,11 +137,7 @@ func Test_E2E(t *testing.T) { tm.Type("abcd") tm.Send(tea.KeyMsg{Type: tea.KeyEnter}) tm.WaitFinished(t, teatest.WithFinalTimeout(waitTimeout)) - bts, err := io.ReadAll(tm.FinalOutput(t)) - require.NoError(t, err) - output = normalizeOutput(bts) - require.Empty(t, strings.TrimSpace(output)) // Output sometimes contains a single space. require.True(t, tm.FinalModel(t).(Model).valueEntered) require.False(t, tm.FinalModel(t).(Model).Quitting) require.Equal(t, "abcd", tm.FinalModel(t).(Model).GetValue())