mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-23 05:22:02 +02:00
Increase delay since TestTui/search is still flaky
This commit is contained in:
parent
1a84bc2fef
commit
b1988d7022
@ -1752,7 +1752,7 @@ func testTui_search(t testing.TB) {
|
||||
// Check the output when the initial search is invalid
|
||||
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
|
||||
// ExtraDelay to ensure that after searching for 'foo:' it gets the real results for an empty query
|
||||
{Keys: "hishtory SPACE tquery SPACE foo: ENTER", ExtraDelay: 1.0},
|
||||
{Keys: "hishtory SPACE tquery SPACE foo: ENTER", ExtraDelay: 1.5},
|
||||
{Keys: "ls", ExtraDelay: 1.0},
|
||||
})
|
||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||
@ -1762,7 +1762,7 @@ func testTui_search(t testing.TB) {
|
||||
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
|
||||
{Keys: "hishtory SPACE tquery ENTER"},
|
||||
// ExtraDelay to ensure that the search for 'ls' finishes before we make it invalid by adding ':'
|
||||
{Keys: "ls", ExtraDelay: 1.0},
|
||||
{Keys: "ls", ExtraDelay: 1.5},
|
||||
{Keys: ":"},
|
||||
})
|
||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user