From e2ba90fdfa9356ad1955b81473c3ad1a5d38b667 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Fri, 16 Nov 2018 15:54:49 -0800 Subject: [PATCH] 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.) --- command/meta_backend_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/command/meta_backend_test.go b/command/meta_backend_test.go index 15995de8f..b6e23a8f0 100644 --- a/command/meta_backend_test.go +++ b/command/meta_backend_test.go @@ -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 {