watchtower: completely remove the mock tower client DB

Remove the use of the mock tower client DB and use the actual bbolt DB
everywhere instead.
This commit is contained in:
Elle Mouton committed 2023-09-13 12:21:04 +02:00
1 parent f889c9b1cc
commit ff0d8fc619
4 files changed
+46 -999

No files matched your search

-7
View File
@@ -13,7 +13,6 @@ import (
"github.com/lightningnetwork/lnd/watchtower/blob"
"github.com/lightningnetwork/lnd/watchtower/wtclient"
"github.com/lightningnetwork/lnd/watchtower/wtdb"
"github.com/lightningnetwork/lnd/watchtower/wtmock"
"github.com/lightningnetwork/lnd/watchtower/wtpolicy"
"github.com/stretchr/testify/require"
)
@@ -964,12 +963,6 @@ func TestClientDB(t *testing.T) {
return db
},
},
{
name: "mock",
init: func(t *testing.T) wtclient.DB {
return wtmock.NewClientDB()
},
},
}
tests := []struct {