command: Fix TestMetaBackend_planLocalMatch

We now don't create a local state backup until the first snapshot write,
so we don't expect there to be a backup file until the end of the test.
(There is already a check at the end there, unmodified by this change.)
This commit is contained in:
Martin Atkins 2018-11-16 15:54:49 -08:00
parent 48601d261d
commit e2ba90fdfa
1 changed files with 0 additions and 5 deletions

View File

@ -1683,11 +1683,6 @@ func TestMetaBackend_planLocalMatch(t *testing.T) {
t.Fatal("state is empty")
}
// Verify a backup exists
if _, err := os.Stat(DefaultStateFilename + DefaultBackupExtension); err != nil {
t.Fatalf("err: %s", err)
}
// Verify we have no configured backend/legacy
path := filepath.Join(m.DataDir(), DefaultStateFilename)
if _, err := os.Stat(path); err == nil {