From c05a556c0e24c49f0355ea7d791d11c493218c80 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 8 Nov 2018 15:05:49 -0800 Subject: [PATCH] command: Fix TestRefresh_backup This test intentionally overrides the backup file location using the -backup option, so the backup file is not in the default location for this one. --- command/refresh_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/refresh_test.go b/command/refresh_test.go index 9b2037f81..84808f174 100644 --- a/command/refresh_test.go +++ b/command/refresh_test.go @@ -566,7 +566,7 @@ func TestRefresh_backup(t *testing.T) { t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected)) } - backupState := testStateRead(t, outPath+DefaultBackupExtension) + backupState := testStateRead(t, backupPath) actualStr := strings.TrimSpace(backupState.String()) expectedStr := strings.TrimSpace(state.String()) if actualStr != expectedStr {