mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-18 02:56:43 +02:00
Add extra delay for testTui_delete test that relies on syncing, which can be slow
This commit is contained in:
parent
68c6bd6654
commit
eb1bc99a22
@ -1677,8 +1677,8 @@ func testTui_delete(t testing.TB) {
|
|||||||
testutils.CompareGoldens(t, out, "TestTui-DeleteAgain")
|
testutils.CompareGoldens(t, out, "TestTui-DeleteAgain")
|
||||||
|
|
||||||
// And that it stays deleted
|
// And that it stays deleted
|
||||||
out = captureTerminalOutput(t, tester, []string{
|
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
|
||||||
"hishtory SPACE tquery ENTER",
|
{Keys: "hishtory SPACE tquery ENTER", ExtraDelay: 1.0},
|
||||||
})
|
})
|
||||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||||
testutils.CompareGoldens(t, out, "TestTui-DeleteAgainStill")
|
testutils.CompareGoldens(t, out, "TestTui-DeleteAgainStill")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user