From 0fec2d5ba906bda40e46cae0ac37ecce7bd59923 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 15 Oct 2023 21:45:20 -0700 Subject: [PATCH] Ensure that the DB entry is reliably created locally and in the remote for testTui/scroll to make it more reliable --- client/client_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/client_test.go b/client/client_test.go index 17936dc..2bd6521 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1674,7 +1674,9 @@ func testTui_scroll(t testing.TB) { testutils.CompareGoldens(t, out, "TestTui-LeftScroll") // Test horizontal scrolling by one to the right - manuallySubmitHistoryEntry(t, userSecret, testutils.MakeFakeHistoryEntry("echo '1234567890qwertyuiopasdfghjklzxxcvbnm0987654321_0_1234567890qwertyuiopasdfghjklzxxcvbnm0987654321_1_1234567890qwertyuiopasdfghjklzxxcvbnm0987654321_2_1234567890qwertyuiopasdfghjklzxxcvbnm0987654321'")) + veryLongEntry := testutils.MakeFakeHistoryEntry("echo '1234567890qwertyuiopasdfghjklzxxcvbnm0987654321_0_1234567890qwertyuiopasdfghjklzxxcvbnm0987654321_1_1234567890qwertyuiopasdfghjklzxxcvbnm0987654321_2_1234567890qwertyuiopasdfghjklzxxcvbnm0987654321'") + manuallySubmitHistoryEntry(t, userSecret, veryLongEntry) + require.NoError(t, hctx.GetDb(hctx.MakeContext()).Create(veryLongEntry).Error) out = captureTerminalOutput(t, tester, []string{ "hishtory SPACE tquery ENTER", "S-Left S-Right S-Right S-Left",