mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-26 15:02:00 +02:00
Add extra delay before ENTER for searching to ensure that the async query finishes
This commit is contained in:
parent
96d14d3b9f
commit
58c791b662
@ -1843,7 +1843,7 @@ func testTui_search(t testing.TB) {
|
|||||||
// Check the output when there is a selected result
|
// Check the output when there is a selected result
|
||||||
out = captureTerminalOutput(t, tester, []string{
|
out = captureTerminalOutput(t, tester, []string{
|
||||||
"hishtory SPACE tquery ENTER",
|
"hishtory SPACE tquery ENTER",
|
||||||
"ls", "ENTER",
|
"ls", "", "ENTER",
|
||||||
})
|
})
|
||||||
out = strings.Split(strings.TrimSpace(strings.Split(out, "hishtory tquery")[1]), "\n")[0]
|
out = strings.Split(strings.TrimSpace(strings.Split(out, "hishtory tquery")[1]), "\n")[0]
|
||||||
expected := `ls ~/`
|
expected := `ls ~/`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user