core:fix the wrong error format

This commit is contained in:
ysqi 2019-04-06 10:40:41 +08:00
parent 6e401792ce
commit 8e86f39a27

View file

@ -126,7 +126,7 @@ func validateEvents(events chan NewTxsEvent, count int) error {
case ev := <-events:
received = append(received, ev.Txs...)
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 {