Add extra delay for testTui_delete test that relies on syncing, which can be slow

This commit is contained in:
David Dworken 2023-09-23 10:58:48 -07:00
parent 68c6bd6654
commit eb1bc99a22
No known key found for this signature in database

View File

@ -1677,8 +1677,8 @@ func testTui_delete(t testing.TB) {
testutils.CompareGoldens(t, out, "TestTui-DeleteAgain")
// And that it stays deleted
out = captureTerminalOutput(t, tester, []string{
"hishtory SPACE tquery ENTER",
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
{Keys: "hishtory SPACE tquery ENTER", ExtraDelay: 1.0},
})
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
testutils.CompareGoldens(t, out, "TestTui-DeleteAgainStill")