Browse Source

consensus: return from go-routine in test

pull/1328/head
Ethan Buchman 7 years ago
parent
commit
b297efb532
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      consensus/mempool_test.go

+ 1
- 0
consensus/mempool_test.go 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)
}


Loading…
Cancel
Save