Simplify tests for removing duplicate rows to avoid flaky failure caused by extra newline

This commit is contained in:
David Dworken 2023-12-20 13:39:52 -08:00
parent 5e415469d8
commit 8f8f4449bf
2 changed files with 1 additions and 5 deletions

View File

@ -2561,10 +2561,7 @@ echo foo`)
{Keys: "ENTER", ExtraDelay: 1.0},
})
out = stripTuiCommandPrefix(t, out)
require.Contains(t, out, "\n")
fmt.Printf("TODO: Debug: out=%#v", out)
out = strings.Split(out, "\n")[1]
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-enabled-tquery-select")
require.Contains(t, out, "\necho foo\n")
}
func TestSetConfigNoCorruption(t *testing.T) {