graph/db: rename DeleteLightningNode

to DeleteNode
This commit is contained in:
Elle Mouton committed 2025-09-03 10:14:35 +02:00
1 parent cd3bd05810
commit 7a1b548e07
5 files changed
+13 -13

No files matched your search

+4 -4
View File
@@ -151,13 +151,13 @@ func TestNodeInsertionAndDeletion(t *testing.T) {
// Next, delete the node from the graph, this should purge all data
// related to the node.
require.NoError(t, graph.DeleteLightningNode(ctx, testPub))
require.NoError(t, graph.DeleteNode(ctx, testPub))
assertNodeNotInCache(t, graph, testPub)
// Attempting to delete the node again should return an error since
// the node is no longer known.
require.ErrorIs(
t, graph.DeleteLightningNode(ctx, testPub),
t, graph.DeleteNode(ctx, testPub),
ErrGraphNodeNotFound,
)
@@ -331,7 +331,7 @@ func TestPartialNode(t *testing.T) {
// Next, delete the node from the graph, this should purge all data
// related to the node.
require.NoError(t, graph.DeleteLightningNode(ctx, pubKey1))
require.NoError(t, graph.DeleteNode(ctx, pubKey1))
assertNodeNotInCache(t, graph, testPub)
// Finally, attempt to fetch the node again. This should fail as the
@@ -3520,7 +3520,7 @@ func TestNodePruningUpdateIndexDeletion(t *testing.T) {
// We'll now delete the node from the graph, this should result in it
// being removed from the update index as well.
err = graph.DeleteLightningNode(ctx, node1.PubKeyBytes)
err = graph.DeleteNode(ctx, node1.PubKeyBytes)
require.NoError(t, err)
// Now that the node has been deleted, we'll again query the nodes in