mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 06:22:24 +02:00
Simplify tests for removing duplicate rows to avoid flaky failure caused by extra newline
This commit is contained in:
parent
5e415469d8
commit
8f8f4449bf
@ -2561,10 +2561,7 @@ echo foo`)
|
|||||||
{Keys: "ENTER", ExtraDelay: 1.0},
|
{Keys: "ENTER", ExtraDelay: 1.0},
|
||||||
})
|
})
|
||||||
out = stripTuiCommandPrefix(t, out)
|
out = stripTuiCommandPrefix(t, out)
|
||||||
require.Contains(t, out, "\n")
|
require.Contains(t, out, "\necho foo\n")
|
||||||
fmt.Printf("TODO: Debug: out=%#v", out)
|
|
||||||
out = strings.Split(out, "\n")[1]
|
|
||||||
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-enabled-tquery-select")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSetConfigNoCorruption(t *testing.T) {
|
func TestSetConfigNoCorruption(t *testing.T) {
|
||||||
|
@ -1 +0,0 @@
|
|||||||
echo foo
|
|
Loading…
x
Reference in New Issue
Block a user