consensus: return from go-routine in test

This commit is contained in:
Ethan Buchman
2018-03-18 23:05:04 +01:00
parent 2a258a2c3f
commit b297efb532

View File

@ -152,6 +152,7 @@ func TestMempoolRmBadTx(t *testing.T) {
txs := cs.mempool.Reap(1)
if len(txs) == 0 {
emptyMempoolCh <- struct{}{}
return
}
time.Sleep(10 * time.Millisecond)
}