From 2d7d74c0662e55bf84f0d30ffac592add8576d4f Mon Sep 17 00:00:00 2001 From: David Dworken Date: Thu, 3 Nov 2022 21:16:53 -0700 Subject: [PATCH] Run the TestRemoteDuplicateRows test with zsh rather than bash --- client/client_test.go | 2 +- client/lib/goldens/testRemoveDuplicateRows-enabled-export | 1 - client/lib/goldens/testRemoveDuplicateRows-enabled-query | 1 - client/lib/goldens/testRemoveDuplicateRows-enabled-tquery | 4 ++-- client/lib/goldens/testRemoveDuplicateRows-tquery | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index d580e93..e52bba1 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -2071,7 +2071,7 @@ echo bar`) func TestRemoveDuplicateRows(t *testing.T) { // Setup - tester := bashTester{} + tester := zshTester{} defer testutils.BackupAndRestore(t)() installHishtory(t, tester, "") diff --git a/client/lib/goldens/testRemoveDuplicateRows-enabled-export b/client/lib/goldens/testRemoveDuplicateRows-enabled-export index c300a9a..05b21f2 100644 --- a/client/lib/goldens/testRemoveDuplicateRows-enabled-export +++ b/client/lib/goldens/testRemoveDuplicateRows-enabled-export @@ -4,5 +4,4 @@ echo baz echo baz echo foo hishtory config-set displayed-columns 'Exit Code' Command -source /Users/david/.bashrc hishtory config-set filter-duplicate-commands true diff --git a/client/lib/goldens/testRemoveDuplicateRows-enabled-query b/client/lib/goldens/testRemoveDuplicateRows-enabled-query index 3ec0baa..4b445f2 100644 --- a/client/lib/goldens/testRemoveDuplicateRows-enabled-query +++ b/client/lib/goldens/testRemoveDuplicateRows-enabled-query @@ -1,6 +1,5 @@ Exit Code Command 0 hishtory config-set filter-duplicate-commands true -0 source /Users/david/.bashrc 0 hishtory config-set displayed-columns 'Exit Code' Command 0 echo foo 0 echo baz diff --git a/client/lib/goldens/testRemoveDuplicateRows-enabled-tquery b/client/lib/goldens/testRemoveDuplicateRows-enabled-tquery index dad32fa..5a5195a 100644 --- a/client/lib/goldens/testRemoveDuplicateRows-enabled-tquery +++ b/client/lib/goldens/testRemoveDuplicateRows-enabled-tquery @@ -7,9 +7,7 @@ Search Query: > -pipefail ┌───────────────────────────────────────────────────────────────────────────┐ │ Exit Code Command │ │───────────────────────────────────────────────────────────────────────────│ -│ 0 source /Users/david/.bashrc │ │ 0 hishtory config-set filter-duplicate-commands true │ -│ 0 source /Users/david/.bashrc │ │ 0 hishtory config-set displayed-columns 'Exit Code' Command │ │ 0 echo foo │ │ 0 echo baz │ @@ -27,4 +25,6 @@ Search Query: > -pipefail │ │ │ │ │ │ +│ │ +│ │ └───────────────────────────────────────────────────────────────────────────┘ \ No newline at end of file diff --git a/client/lib/goldens/testRemoveDuplicateRows-tquery b/client/lib/goldens/testRemoveDuplicateRows-tquery index 1f75890..cfb1572 100644 --- a/client/lib/goldens/testRemoveDuplicateRows-tquery +++ b/client/lib/goldens/testRemoveDuplicateRows-tquery @@ -7,7 +7,6 @@ Search Query: > -pipefail ┌───────────────────────────────────────────────────────────────────────────┐ │ Exit Code Command │ │───────────────────────────────────────────────────────────────────────────│ -│ 0 source /Users/david/.bashrc │ │ 0 hishtory config-set displayed-columns 'Exit Code' Command │ │ 0 echo foo │ │ 0 echo baz │ @@ -27,4 +26,5 @@ Search Query: > -pipefail │ │ │ │ │ │ +│ │ └───────────────────────────────────────────────────────────────────────────┘ \ No newline at end of file