mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-30 18:58: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
|
// Check the output when the device is offline AND there is an invalid search
|
||||||
os.Setenv("HISHTORY_SIMULATE_NETWORK_ERROR", "1")
|
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", "")
|
os.Setenv("HISHTORY_SIMULATE_NETWORK_ERROR", "")
|
||||||
out = stripTuiCommandPrefix(t, out)
|
out = stripTuiCommandPrefix(t, out)
|
||||||
testutils.CompareGoldens(t, out, "TestTui-OfflineInvalid")
|
testutils.CompareGoldens(t, out, "TestTui-OfflineInvalid")
|
||||||
|
Loading…
Reference in New Issue
Block a user