mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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))
|
||||
}
|
||||
|
||||
backupState := testStateRead(t, outPath+DefaultBackupExtension)
|
||||
backupState := testStateRead(t, backupPath)
|
||||
actualStr := strings.TrimSpace(backupState.String())
|
||||
expectedStr := strings.TrimSpace(state.String())
|
||||
if actualStr != expectedStr {
|
||||
|
Loading…
Reference in New Issue
Block a user