Skip to content

Commit

Permalink
Fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ddworken committed Dec 31, 2024
1 parent 625ce46 commit 090f94d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3443,7 +3443,7 @@ func TestStatusFullConfig(t *testing.T) {
out := tester.RunInteractiveShell(t, `hishtory status --full-config | grep -v 'Secret Key'`)
testutils.CompareGoldens(t, out, "TestStatusFullConfig")
}

func TestExportJson(t *testing.T) {
markTestForSharding(t, 20)
defer testutils.BackupAndRestore(t)()
Expand Down Expand Up @@ -3527,10 +3527,9 @@ func TestOfflineClient(t *testing.T) {
testutils.CompareGoldens(t, out, "testControlR-Initial")

// And check that even if syncing is enabled, the fully offline client will never send an HTTP request
out, err := tester.RunInteractiveShellRelaxed(t, `hishtory syncing enable`)
_, err := tester.RunInteractiveShellRelaxed(t, `hishtory syncing enable`)
require.Error(t, err)
require.Contains(t, err.Error(), "panic: Cannot GetHttpClient() from a hishtory client compiled with the offline tag!")
}


// TODO: somehow test/confirm that hishtory works even if only bash/only zsh is installed

0 comments on commit 090f94d

Please sign in to comment.