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:
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))
|
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())
|
actualStr := strings.TrimSpace(backupState.String())
|
||||||
expectedStr := strings.TrimSpace(state.String())
|
expectedStr := strings.TrimSpace(state.String())
|
||||||
if actualStr != expectedStr {
|
if actualStr != expectedStr {
|
||||||
|
|
Loading…
Reference in New Issue