fixes from Bucky's review

This commit is contained in:
Anton Kaliaev
2017-11-07 18:08:45 -05:00
parent 2d4ad02356
commit e0daca5693
4 changed files with 56 additions and 51 deletions

View File

@@ -141,10 +141,12 @@ func TestRmBadTx(t *testing.T) {
}
// check for the tx
txs := cs.mempool.Reap(1)
if len(txs) == 0 {
emptyMempoolCh <- struct{}{}
return
for {
txs := cs.mempool.Reap(1)
if len(txs) == 0 {
emptyMempoolCh <- struct{}{}
}
time.Sleep(10 * time.Millisecond)
}
}()