From 369b4f6574c14a07940f4246ba1863d54e9c8154 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Fri, 20 Aug 2021 12:25:52 -0400 Subject: [PATCH] [lbry] ci: cleanup claim databases for regression test --- btcd.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/btcd.go b/btcd.go index 2fc3f8cc..19ef61eb 100644 --- a/btcd.go +++ b/btcd.go @@ -208,6 +208,13 @@ func removeRegressionDB(dbPath string) error { } } + dbPath = filepath.Join(cfg.DataDir, activeNetParams.Name, "claim_dbs") + btcdLog.Infof("Removing regression test claim databases from '%s'", dbPath) + err = os.RemoveAll(dbPath) + if err != nil { + return err + } + return nil }