fix : TestBeaconSync66

This commit is contained in:
Shivam Sharma 2023-07-04 16:50:05 +05:30
parent 2ad1e0f7e9
commit 616e33f290
2 changed files with 4 additions and 2 deletions

View file

@ -1267,7 +1267,9 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
for errs[nilSlot] != nil {
nilSlot++
}
errs[nilSlot] = err
nilSlot++
}
// Reorg the pool internals if needed and return

View file

@ -63,7 +63,7 @@ func newTester(t *testing.T) *downloadTester {
}
// newTester creates a new downloader test mocker.
func newTesterWithNotification(t *testing.T, _ func()) *downloadTester {
func newTesterWithNotification(t *testing.T, success func()) *downloadTester {
t.Helper()
freezer := t.TempDir()
@ -95,7 +95,7 @@ func newTesterWithNotification(t *testing.T, _ func()) *downloadTester {
}
//nolint: staticcheck
tester.downloader = New(0, db, new(event.TypeMux), tester.chain, nil, tester.dropPeer, nil, whitelist.NewService(10))
tester.downloader = New(0, db, new(event.TypeMux), tester.chain, nil, tester.dropPeer, success, whitelist.NewService(10))
return tester
}