graph/db: thread context through to HasLightningNode
This commit is contained in:
12 files changed
+31
-28
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user