routing: remove a context.TODO()

This commit is contained in:
Elle Mouton committed 2025-06-19 14:49:32 +02:00
1 parent 9597f01ce3
commit 91513623b5
4 files changed
+20 -11

No files matched your search

+5 -2
View File
@@ -1,6 +1,7 @@
package localchans
import (
"context"
"encoding/hex"
"testing"
"time"
@@ -163,7 +164,7 @@ func TestManager(t *testing.T) {
}, nil
}
addEdge := func(edge *models.ChannelEdgeInfo) error {
addEdge := func(_ context.Context, _ *models.ChannelEdgeInfo) error {
return nil
}
@@ -314,7 +315,9 @@ func TestManager(t *testing.T) {
channelSet = test.channelSet
expectedNumUpdates = test.expectedNumUpdates
failedUpdates, err := manager.UpdatePolicy(test.newPolicy,
failedUpdates, err := manager.UpdatePolicy(
context.Background(),
test.newPolicy,
test.createMissingEdge,
test.specifiedChanPoints...)