Extra delay to make test more reliable

This commit is contained in:
David Dworken 2023-10-15 21:47:01 -07:00
parent 0fec2d5ba9
commit f1ca76a5a0
No known key found for this signature in database

View File

@ -1813,7 +1813,7 @@ func testTui_search(t testing.TB) {
// Check the output when the search is invalid
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
{Keys: "hishtory SPACE tquery ENTER"},
{Keys: "hishtory SPACE tquery ENTER", ExtraDelay: 1.0},
// ExtraDelay to ensure that the search for 'ls' finishes before we make it invalid by adding ':'
{Keys: "ls", ExtraDelay: 1.5},
{Keys: ":"},