@@ -2,7 +2,6 @@ package discovery
2
2
3
3
import (
4
4
"bytes"
5
- "context"
6
5
"fmt"
7
6
"io"
8
7
"reflect"
@@ -83,7 +82,7 @@ func TestSyncManagerNumActiveSyncers(t *testing.T) {
83
82
}
84
83
85
84
syncMgr := newPinnedTestSyncManager (numActiveSyncers , pinnedSyncers )
86
- syncMgr .Start (context . Background () )
85
+ syncMgr .Start ()
87
86
defer syncMgr .Stop ()
88
87
89
88
// First we'll start by adding the pinned syncers. These should
@@ -135,7 +134,7 @@ func TestSyncManagerNewActiveSyncerAfterDisconnect(t *testing.T) {
135
134
136
135
// We'll create our test sync manager to have two active syncers.
137
136
syncMgr := newTestSyncManager (2 )
138
- syncMgr .Start (context . Background () )
137
+ syncMgr .Start ()
139
138
defer syncMgr .Stop ()
140
139
141
140
// The first will be an active syncer that performs a historical sync
@@ -188,7 +187,7 @@ func TestSyncManagerRotateActiveSyncerCandidate(t *testing.T) {
188
187
189
188
// We'll create our sync manager with three active syncers.
190
189
syncMgr := newTestSyncManager (1 )
191
- syncMgr .Start (context . Background () )
190
+ syncMgr .Start ()
192
191
defer syncMgr .Stop ()
193
192
194
193
// The first syncer registered always performs a historical sync.
@@ -236,7 +235,7 @@ func TestSyncManagerNoInitialHistoricalSync(t *testing.T) {
236
235
t .Parallel ()
237
236
238
237
syncMgr := newTestSyncManager (0 )
239
- syncMgr .Start (context . Background () )
238
+ syncMgr .Start ()
240
239
defer syncMgr .Stop ()
241
240
242
241
// We should not expect any messages from the peer.
@@ -270,7 +269,7 @@ func TestSyncManagerInitialHistoricalSync(t *testing.T) {
270
269
t .Fatal ("expected graph to not be considered as synced" )
271
270
}
272
271
273
- syncMgr .Start (context . Background () )
272
+ syncMgr .Start ()
274
273
defer syncMgr .Stop ()
275
274
276
275
// We should expect to see a QueryChannelRange message with a
@@ -339,7 +338,7 @@ func TestSyncManagerHistoricalSyncOnReconnect(t *testing.T) {
339
338
t .Parallel ()
340
339
341
340
syncMgr := newTestSyncManager (2 )
342
- syncMgr .Start (context . Background () )
341
+ syncMgr .Start ()
343
342
defer syncMgr .Stop ()
344
343
345
344
// We should expect to see a QueryChannelRange message with a
@@ -373,7 +372,7 @@ func TestSyncManagerForceHistoricalSync(t *testing.T) {
373
372
t .Parallel ()
374
373
375
374
syncMgr := newTestSyncManager (1 )
376
- syncMgr .Start (context . Background () )
375
+ syncMgr .Start ()
377
376
defer syncMgr .Stop ()
378
377
379
378
// We should expect to see a QueryChannelRange message with a
@@ -411,7 +410,7 @@ func TestSyncManagerGraphSyncedAfterHistoricalSyncReplacement(t *testing.T) {
411
410
t .Parallel ()
412
411
413
412
syncMgr := newTestSyncManager (1 )
414
- syncMgr .Start (context . Background () )
413
+ syncMgr .Start ()
415
414
defer syncMgr .Stop ()
416
415
417
416
// We should expect to see a QueryChannelRange message with a
@@ -469,7 +468,7 @@ func TestSyncManagerWaitUntilInitialHistoricalSync(t *testing.T) {
469
468
// We'll start by creating our test sync manager which will hold up to
470
469
// 2 active syncers.
471
470
syncMgr := newTestSyncManager (numActiveSyncers )
472
- syncMgr .Start (context . Background () )
471
+ syncMgr .Start ()
473
472
defer syncMgr .Stop ()
474
473
475
474
// We'll go ahead and create our syncers.
0 commit comments