mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
watchtower/wtmock/tower_db: move mock tower db to wtmock pkg
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// +build dev
|
||||
|
||||
package wtserver_test
|
||||
|
||||
import (
|
||||
@@ -53,7 +51,7 @@ func initServer(t *testing.T, db wtserver.DB,
|
||||
t.Helper()
|
||||
|
||||
if db == nil {
|
||||
db = wtdb.NewMockDB()
|
||||
db = wtmock.NewTowerDB()
|
||||
}
|
||||
|
||||
s, err := wtserver.New(&wtserver.Config{
|
||||
@@ -687,7 +685,7 @@ func testServerStateUpdates(t *testing.T, test stateUpdateTestCase) {
|
||||
// checking that the proper error is returned when the session doesn't exist and
|
||||
// that a successful deletion does not disrupt other sessions.
|
||||
func TestServerDeleteSession(t *testing.T) {
|
||||
db := wtdb.NewMockDB()
|
||||
db := wtmock.NewTowerDB()
|
||||
|
||||
localPub := randPubKey(t)
|
||||
|
||||
|
Reference in New Issue
Block a user