mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
fix : TestBeaconSync66
This commit is contained in:
parent
2ad1e0f7e9
commit
616e33f290
2 changed files with 4 additions and 2 deletions
|
|
@ -1267,7 +1267,9 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
|
||||||
for errs[nilSlot] != nil {
|
for errs[nilSlot] != nil {
|
||||||
nilSlot++
|
nilSlot++
|
||||||
}
|
}
|
||||||
|
|
||||||
errs[nilSlot] = err
|
errs[nilSlot] = err
|
||||||
|
|
||||||
nilSlot++
|
nilSlot++
|
||||||
}
|
}
|
||||||
// Reorg the pool internals if needed and return
|
// Reorg the pool internals if needed and return
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ func newTester(t *testing.T) *downloadTester {
|
||||||
}
|
}
|
||||||
|
|
||||||
// newTester creates a new downloader test mocker.
|
// newTester creates a new downloader test mocker.
|
||||||
func newTesterWithNotification(t *testing.T, _ func()) *downloadTester {
|
func newTesterWithNotification(t *testing.T, success func()) *downloadTester {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
freezer := t.TempDir()
|
freezer := t.TempDir()
|
||||||
|
|
@ -95,7 +95,7 @@ func newTesterWithNotification(t *testing.T, _ func()) *downloadTester {
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint: staticcheck
|
//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
|
return tester
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue