graph/db: thread context through to HasLightningNode

This commit is contained in:
Elle Mouton committed 2025-06-17 19:20:56 +02:00
1 parent 66c5a97202
commit dc6259fcc3
12 files changed
+31 -28

No files matched your search

+3 -3
View File
@@ -135,7 +135,7 @@ func TestNodeInsertionAndDeletion(t *testing.T) {
dbNode, err := graph.FetchLightningNode(ctx, testPub)
require.NoError(t, err, "unable to locate node")
_, exists, err := graph.HasLightningNode(dbNode.PubKeyBytes)
_, exists, err := graph.HasLightningNode(ctx, dbNode.PubKeyBytes)
if err != nil {
t.Fatalf("unable to query for node: %v", err)
} else if !exists {
@@ -288,7 +288,7 @@ func TestPartialNode(t *testing.T) {
dbNode2, err := graph.FetchLightningNode(ctx, pubKey2)
require.NoError(t, err)
_, exists, err := graph.HasLightningNode(dbNode1.PubKeyBytes)
_, exists, err := graph.HasLightningNode(ctx, dbNode1.PubKeyBytes)
require.NoError(t, err)
require.True(t, exists)
@@ -302,7 +302,7 @@ func TestPartialNode(t *testing.T) {
}
compareNodes(t, expectedNode1, dbNode1)
_, exists, err = graph.HasLightningNode(dbNode2.PubKeyBytes)
_, exists, err = graph.HasLightningNode(ctx, dbNode2.PubKeyBytes)
require.NoError(t, err)
require.True(t, exists)