Fix test broken by 7ae9f15b by making sure input is sent and processed as separate events

This commit is contained in:
David Dworken 2024-04-20 18:19:28 -07:00
parent 7ae9f15b29
commit c5f528b00b
No known key found for this signature in database

View File

@ -2150,7 +2150,7 @@ func testTui_errors(t *testing.T) {
// Check the output when the device is offline AND there is an invalid search
os.Setenv("HISHTORY_SIMULATE_NETWORK_ERROR", "1")
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery ENTER", "ls:"})
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery ENTER", "ls", ":"})
os.Setenv("HISHTORY_SIMULATE_NETWORK_ERROR", "")
out = stripTuiCommandPrefix(t, out)
testutils.CompareGoldens(t, out, "TestTui-OfflineInvalid")