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.
pull/19348/head
Martin Atkins 8 years ago
parent ad276142b4
commit c05a556c0e

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

Loading…
Cancel
Save