mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-27 17:28:52 +01:00
Fix test broken by 7ae9f15b
by making sure input is sent and processed as separate events
This commit is contained in:
parent
7ae9f15b29
commit
c5f528b00b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user