mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-11 16:58:47 +01: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
|
||||
out = captureTerminalOutput(t, tester, []string{
|
||||
"hishtory SPACE tquery ENTER",
|
||||
"ls", "ENTER",
|
||||
"ls", "", "ENTER",
|
||||
})
|
||||
out = strings.Split(strings.TrimSpace(strings.Split(out, "hishtory tquery")[1]), "\n")[0]
|
||||
expected := `ls ~/`
|
||||
|
Loading…
Reference in New Issue
Block a user