fix test despite original comments
Original comments were incorrect, and the test was checking for the absence of state
This commit is contained in:
parent
39ca4fa2f8
commit
b8bd4846db
|
@ -2520,14 +2520,14 @@ func TestMetaBackend_planBackendEmptyDir(t *testing.T) {
|
||||||
t.Fatalf("bad: %#v", state)
|
t.Fatalf("bad: %#v", state)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify the default path
|
// Verify the default path doesn't exist
|
||||||
if isEmptyState(DefaultStateFilename) {
|
if !isEmptyState(DefaultStateFilename) {
|
||||||
t.Fatal("state is empty")
|
t.Fatal("state is not empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify a backup exists
|
// Verify a backup doesn't exist
|
||||||
if isEmptyState(DefaultStateFilename + DefaultBackupExtension) {
|
if !isEmptyState(DefaultStateFilename + DefaultBackupExtension) {
|
||||||
t.Fatal("backup is empty")
|
t.Fatal("backup is not empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify we have no configured backend/legacy
|
// Verify we have no configured backend/legacy
|
||||||
|
|
Loading…
Reference in New Issue