This commit is contained in:
Ethan Buchman
2017-03-05 03:40:36 -05:00
parent de0153a1c4
commit 2037d2631a
2 changed files with 6 additions and 9 deletions

View File

@ -81,15 +81,12 @@ func TestRmBadTx(t *testing.T) {
// check for the tx
for {
time.Sleep(time.Second)
select {
case <-ch:
default:
txs := cs.mempool.Reap(1)
if len(txs) == 0 {
ch <- struct{}{}
}
txs := cs.mempool.Reap(1)
if len(txs) == 0 {
ch <- struct{}{}
return
}
}
}()