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