[lbry]: btcd: cleanup claim databases for regression test

This commit is contained in:
Roy Lee 2021-08-20 12:25:52 -04:00
parent bf86d03f84
commit 7154e57d49

View file

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