graph/db: thread context through FetchNodeFeatures
This commit is contained in:
8 files changed
+30
-22
No files matched your search
@@ -298,13 +298,13 @@ func testNodeInsertionAndDeletion(t *testing.T, v lnwire.GossipVersion) {
|
||||
|
||||
// Check that the node's features are fetched correctly. This check
|
||||
// will use the graph cache to fetch the features.
|
||||
features, err := graph.FetchNodeFeatures(node.PubKeyBytes)
|
||||
features, err := graph.FetchNodeFeatures(ctx, node.PubKeyBytes)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, testFeatures, features)
|
||||
|
||||
// Check that the node's features are fetched correctly. This check
|
||||
// will check the database directly.
|
||||
features, err = graph.FetchNodeFeatures(node.PubKeyBytes)
|
||||
features, err = graph.FetchNodeFeatures(ctx, node.PubKeyBytes)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, testFeatures, features)
|
||||
|
||||
|
||||
Reference in new issue
Block a user