channeldb: remove graph calls from tests

The channeldb no longer depends on the graph. So remove the use of
MakeTestGraph from tests.
This commit is contained in:
Elle Mouton committed 2025-05-22 14:14:40 +02:00
1 parent a5c1219999
commit 5d7c6c4b60
2 files changed
+11 -19

No files matched your search

-8
View File
@@ -6,7 +6,6 @@ import (
"github.com/btcsuite/btcwallet/walletdb"
"github.com/go-errors/errors"
graphdb "github.com/lightningnetwork/lnd/graph/db"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/stretchr/testify/require"
)
@@ -22,13 +21,6 @@ func applyMigration(t *testing.T, beforeMigration, afterMigration func(d *DB),
}
cdb.dryRun = dryRun
// Create a test node that will be our source node.
testNode := createTestVertex(t)
graph, err := graphdb.MakeTestGraph(t)
require.NoError(t, err)
require.NoError(t, graph.SetSourceNode(testNode))
// beforeMigration usually used for populating the database
// with test data.
beforeMigration(cdb)