mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Add extra timing between search and the atom that makes it invalid to ensure that the initial search is processed
This commit is contained in:
parent
f808e3815a
commit
96d14d3b9f
@ -1862,7 +1862,7 @@ func testTui_search(t testing.TB) {
|
|||||||
// Check the output when the search is invalid
|
// Check the output when the search is invalid
|
||||||
out = captureTerminalOutput(t, tester, []string{
|
out = captureTerminalOutput(t, tester, []string{
|
||||||
"hishtory SPACE tquery ENTER",
|
"hishtory SPACE tquery ENTER",
|
||||||
"ls:",
|
"ls", ":",
|
||||||
})
|
})
|
||||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||||
testutils.CompareGoldens(t, out, "TestTui-InvalidSearch")
|
testutils.CompareGoldens(t, out, "TestTui-InvalidSearch")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user