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.
This commit is contained in:
Martin Atkins 2018-11-08 15:05:49 -08:00
parent ad276142b4
commit c05a556c0e
1 changed files with 1 additions and 1 deletions

View File

@ -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 {