mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 14:32:14 +02:00
Fix test broken by 7ae9f15b by making sure input is sent and processed as separate events
This commit is contained in:
parent
00baabdff2
commit
1def962555
@ -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…
x
Reference in New Issue
Block a user