main: remove disable log in testing + clean up imports

This commit is contained in:
Conner Fromknecht committed 2018-10-05 13:04:45 +09:00
1 parent bab52421fa
commit 10b35a8f20
8 files changed
+7 -36

No files matched your search

-7
View File
@@ -9,16 +9,9 @@ import (
"testing"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btclog"
"github.com/lightningnetwork/lnd/channeldb"
)
func init() {
// Disable logging to prevent panics bc. of global state
channeldb.UseLogger(btclog.Disabled)
utxnLog = btclog.Disabled
}
// makeTestDB creates a new instance of the ChannelDB for testing purposes. A
// callback which cleans up the created temporary directories is also returned
// and intended to be executed after the test completes.