mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-10 03:51:20 +00:00
fix race
This commit is contained in:
parent
de0153a1c4
commit
2037d2631a
@ -81,16 +81,13 @@ func TestRmBadTx(t *testing.T) {
|
|||||||
// check for the tx
|
// check for the tx
|
||||||
for {
|
for {
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
select {
|
|
||||||
case <-ch:
|
|
||||||
default:
|
|
||||||
txs := cs.mempool.Reap(1)
|
txs := cs.mempool.Reap(1)
|
||||||
if len(txs) == 0 {
|
if len(txs) == 0 {
|
||||||
ch <- struct{}{}
|
ch <- struct{}{}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Wait until the tx returns
|
// Wait until the tx returns
|
||||||
|
2
glide.lock
generated
2
glide.lock
generated
@ -79,7 +79,7 @@ imports:
|
|||||||
- name: github.com/tendermint/go-clist
|
- name: github.com/tendermint/go-clist
|
||||||
version: 3baa390bbaf7634251c42ad69a8682e7e3990552
|
version: 3baa390bbaf7634251c42ad69a8682e7e3990552
|
||||||
- name: github.com/tendermint/go-common
|
- name: github.com/tendermint/go-common
|
||||||
version: 6141dc6eedab067f7e25707a237218ef2c0dc273
|
version: dcb015dff6c7af21e65c8e2f3b450df19d38c777
|
||||||
subpackages:
|
subpackages:
|
||||||
- test
|
- test
|
||||||
- name: github.com/tendermint/go-config
|
- name: github.com/tendermint/go-config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user