mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core:fix the wrong error format
This commit is contained in:
parent
6e401792ce
commit
8e86f39a27
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ func validateEvents(events chan NewTxsEvent, count int) error {
|
||||||
case ev := <-events:
|
case ev := <-events:
|
||||||
received = append(received, ev.Txs...)
|
received = append(received, ev.Txs...)
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
return fmt.Errorf("event #%d not fired", len(received))
|
return fmt.Errorf("timeout: only %d events fired,expect %d", len(received), count)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(received) > count {
|
if len(received) > count {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue