watchtower/wtmock/tower_db: move mock tower db to wtmock pkg

This commit is contained in:
Conner Fromknecht
2019-04-26 17:19:58 -07:00
parent a783f35ad4
commit 2ce6228021
5 changed files with 168 additions and 149 deletions

View File

@@ -15,6 +15,7 @@ import (
"github.com/lightningnetwork/lnd/watchtower/blob"
"github.com/lightningnetwork/lnd/watchtower/lookout"
"github.com/lightningnetwork/lnd/watchtower/wtdb"
"github.com/lightningnetwork/lnd/watchtower/wtmock"
"github.com/lightningnetwork/lnd/watchtower/wtpolicy"
)
@@ -66,7 +67,7 @@ func makeAddrSlice(size int) []byte {
}
func TestLookoutBreachMatching(t *testing.T) {
db := wtdb.NewMockDB()
db := wtmock.NewTowerDB()
// Initialize an mock backend to feed the lookout blocks.
backend := lookout.NewMockBackend()