@@ -159,13 +159,14 @@ func TestNodeInsertionAndDeletion(t *testing.T) {
159159
160160 // Next, delete the node from the graph, this should purge all data
161161 // related to the node.
162- require .NoError (t , graph .DeleteLightningNode (testPub ))
162+ require .NoError (t , graph .DeleteLightningNode (ctx , testPub ))
163163 assertNodeNotInCache (t , graph , testPub )
164164
165165 // Attempting to delete the node again should return an error since
166166 // the node is no longer known.
167167 require .ErrorIs (
168- t , graph .DeleteLightningNode (testPub ), ErrGraphNodeNotFound ,
168+ t , graph .DeleteLightningNode (ctx , testPub ),
169+ ErrGraphNodeNotFound ,
169170 )
170171
171172 // Finally, attempt to fetch the node again. This should fail as the
@@ -318,7 +319,7 @@ func TestPartialNode(t *testing.T) {
318319
319320 // Next, delete the node from the graph, this should purge all data
320321 // related to the node.
321- require .NoError (t , graph .DeleteLightningNode (pubKey1 ))
322+ require .NoError (t , graph .DeleteLightningNode (ctx , pubKey1 ))
322323 assertNodeNotInCache (t , graph , testPub )
323324
324325 // Finally, attempt to fetch the node again. This should fail as the
@@ -3416,9 +3417,8 @@ func TestNodePruningUpdateIndexDeletion(t *testing.T) {
34163417
34173418 // We'll now delete the node from the graph, this should result in it
34183419 // being removed from the update index as well.
3419- if err := graph .DeleteLightningNode (node1 .PubKeyBytes ); err != nil {
3420- t .Fatalf ("unable to delete node: %v" , err )
3421- }
3420+ err = graph .DeleteLightningNode (ctx , node1 .PubKeyBytes )
3421+ require .NoError (t , err )
34223422
34233423 // Now that the node has been deleted, we'll again query the nodes in
34243424 // the horizon. This time we should have no nodes at all.
0 commit comments