Remove log setup from tests as they don't need it.
This commit is contained in:
parent
1846307821
commit
21b8011155
1 changed files with 0 additions and 10 deletions
|
@ -11,7 +11,6 @@ import (
|
||||||
"github.com/conformal/btcdb/sqlite3"
|
"github.com/conformal/btcdb/sqlite3"
|
||||||
"github.com/conformal/btcutil"
|
"github.com/conformal/btcutil"
|
||||||
"github.com/conformal/btcwire"
|
"github.com/conformal/btcwire"
|
||||||
"github.com/conformal/seelog"
|
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -246,15 +245,6 @@ func testIterator(t *testing.T, db btcdb.Db, shas []btcwire.ShaHash,
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBdb(t *testing.T) {
|
func TestBdb(t *testing.T) {
|
||||||
log, err := seelog.LoggerFromWriterWithMinLevel(os.Stdout,
|
|
||||||
seelog.InfoLvl)
|
|
||||||
if err != nil {
|
|
||||||
t.Errorf("failed to create logger: %v", err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
defer log.Flush()
|
|
||||||
btcdb.UseLogger(log)
|
|
||||||
|
|
||||||
// Ignore db remove errors since it means we didn't have an old one.
|
// Ignore db remove errors since it means we didn't have an old one.
|
||||||
_ = os.Remove("tstdb1")
|
_ = os.Remove("tstdb1")
|
||||||
db, err := btcdb.CreateDB("sqlite", "tstdb1")
|
db, err := btcdb.CreateDB("sqlite", "tstdb1")
|
||||||
|
|
Loading…
Add table
Reference in a new issue