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.)
pull/19405/head
Martin Atkins 8 years ago
parent 48601d261d
commit e2ba90fdfa

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

Loading…
Cancel
Save