discovery: remove unnecessary context.Background() calls

This commit is contained in:
Elle Mouton
2025-04-09 12:18:45 +02:00
parent 291381ef86
commit 6d03df7b26
2 changed files with 15 additions and 22 deletions

View File

@@ -1495,7 +1495,7 @@ func TestGossipSyncerSynchronizeChanIDs(t *testing.T) {
for i := 0; i < chunkSize*2; i += 2 {
// With our set up complete, we'll request a sync of chan ID's.
done := syncer.synchronizeChanIDs()
done := syncer.synchronizeChanIDs(context.Background())
// At this point, we shouldn't yet be done as only 2 items
// should have been queried for.
@@ -1542,7 +1542,7 @@ func TestGossipSyncerSynchronizeChanIDs(t *testing.T) {
}
// If we issue another query, the syncer should tell us that it's done.
done := syncer.synchronizeChanIDs()
done := syncer.synchronizeChanIDs(context.Background())
if done {
t.Fatalf("syncer should be finished!")
}