From f84c2d86b586e5624bb9c7385ad1f6682c0085c5 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Tue, 26 Sep 2023 20:16:55 -0700 Subject: [PATCH] Increase delay since TestTui/search is still flaky --- client/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index be0b719..bb00cbc 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -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])