diff --git a/client/client_test.go b/client/client_test.go index 68d8219..9f338bc 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -2675,7 +2675,7 @@ echo baz`) // And then uninstall out, err := tester.RunInteractiveShellRelaxed(t, `yes | hishtory uninstall`) require.NoError(t, err) - testutils.CompareGoldens(t, out, "testUninstall-uninstall") + testutils.CompareGoldens(t, out, "testUninstall-uninstall-"+tester.ShellName()) // And check that hishtory has been uninstalled out, err = tester.RunInteractiveShellRelaxed(t, `echo foo diff --git a/client/testdata/testUninstall-uninstall-bash b/client/testdata/testUninstall-uninstall-bash new file mode 100644 index 0000000..c3ed186 --- /dev/null +++ b/client/testdata/testUninstall-uninstall-bash @@ -0,0 +1,4 @@ +Are you sure you want to uninstall hiSHtory and delete all locally saved history data [y/N]Do you have any feedback on why you're uninstallying hiSHtory? Type any feedback and then hit enter. +Feedback: Successfully uninstalled hishtory, please restart your terminal... +bash: /home/runner/.hishtory/hishtory: No such file or directory + diff --git a/client/testdata/testUninstall-uninstall b/client/testdata/testUninstall-uninstall-zsh similarity index 84% rename from client/testdata/testUninstall-uninstall rename to client/testdata/testUninstall-uninstall-zsh index fe18eed..b20ec62 100644 --- a/client/testdata/testUninstall-uninstall +++ b/client/testdata/testUninstall-uninstall-zsh @@ -1,2 +1,4 @@ Are you sure you want to uninstall hiSHtory and delete all locally saved history data [y/N]Do you have any feedback on why you're uninstallying hiSHtory? Type any feedback and then hit enter. Feedback: Successfully uninstalled hishtory, please restart your terminal... +_hishtory_precmd:8: command not found: hishtory +