From f8a3552ad8b942d5ff98cc7722750a1640ebdc88 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Fri, 9 Feb 2024 17:54:33 -0800 Subject: [PATCH] Remove a few direct DB insertions to prepare for parallel tests --- client/client_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index 7aec368..f71335f 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1672,12 +1672,10 @@ func setupTestTui(t testing.TB, onlineStatus OnlineStatus) (shellTester, string, // Insert a couple hishtory entries db := hctx.GetDb(hctx.MakeContext()) e1 := testutils.MakeFakeHistoryEntry("ls ~/") - require.NoError(t, db.Create(e1).Error) if onlineStatus == Online { manuallySubmitHistoryEntry(t, userSecret, e1) } e2 := testutils.MakeFakeHistoryEntry("echo 'aaaaaa bbbb'") - require.NoError(t, db.Create(e2).Error) if onlineStatus == Online { manuallySubmitHistoryEntry(t, userSecret, e2) } @@ -1793,14 +1791,11 @@ func testTui_defaultFilter(t *testing.T) { // Setup defer testutils.BackupAndRestore(t)() tester, userSecret, _ := setupTestTui(t, Online) - db := hctx.GetDb(hctx.MakeContext()) e1 := testutils.MakeFakeHistoryEntry("exit 0") e1.ExitCode = 0 - require.NoError(t, db.Create(e1).Error) manuallySubmitHistoryEntry(t, userSecret, e1) e2 := testutils.MakeFakeHistoryEntry("exit 1") e2.ExitCode = 1 - require.NoError(t, db.Create(e2).Error) manuallySubmitHistoryEntry(t, userSecret, e2) // Configure a default filter