discovery: handle err for linter

This commit is contained in:
Conner Fromknecht 2021-01-29 00:12:54 -08:00
parent 10a81e01e3
commit 7c6aa20bd8
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -58,7 +58,9 @@ func TestSyncManagerNumActiveSyncers(t *testing.T) {
// should be active and passive to check them later on.
for i := 0; i < numActiveSyncers; i++ {
peer := randPeer(t, syncMgr.quit)
syncMgr.InitSyncState(peer)
err := syncMgr.InitSyncState(peer)
require.NoError(t, err)
s := assertSyncerExistence(t, syncMgr, peer)
// The first syncer registered always attempts a historical
@ -72,7 +74,9 @@ func TestSyncManagerNumActiveSyncers(t *testing.T) {
for i := 0; i < numSyncers-numActiveSyncers; i++ {
peer := randPeer(t, syncMgr.quit)
syncMgr.InitSyncState(peer)
err := syncMgr.InitSyncState(peer)
require.NoError(t, err)
s := assertSyncerExistence(t, syncMgr, peer)
assertSyncerStatus(t, s, chansSynced, PassiveSync)
}