From a66e473bb87160e404e2683bba40388769ac0b67 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 16 Oct 2022 09:56:14 -0700 Subject: [PATCH] Fix bug in client_test that made me not realize that there was a bug in the install process --- client/client_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client_test.go b/client/client_test.go index f49467b..6baa9bf 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1102,6 +1102,7 @@ echo other`) func testInstallViaPythonScript(t *testing.T, tester shellTester) { // Set up defer shared.BackupAndRestore(t)() + defer shared.BackupAndRestoreEnv("HISHTORY_TEST")() // Install via the python script out := tester.RunInteractiveShell(t, `curl https://hishtory.dev/install.py | python3 -`) @@ -1127,6 +1128,7 @@ func testInstallViaPythonScript(t *testing.T, tester shellTester) { } // And test that it recorded that command + time.Sleep(time.Second) out = tester.RunInteractiveShell(t, `hishtory export | grep -v pipefail`) if out != "hishtory status\n" { t.Fatalf("unexpected output from hishtory export=%#v", out)