Browse Source

fix race

pull/1121/head
Ethan Buchman 7 years ago
parent
commit
6f3d9b4be3
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      consensus/replay_test.go

+ 1
- 3
consensus/replay_test.go View File

@ -81,14 +81,12 @@ func startNewConsensusStateAndWaitForBlock(t *testing.T, lastBlockHeight int64,
}
func sendTxs(cs *ConsensusState, ctx context.Context) {
i := 0
tx := []byte{byte(i)}
for i := 0; i < 256; i++ {
select {
case <-ctx.Done():
return
default:
tx[0] = byte(i)
tx := []byte{byte(i)}
cs.mempool.CheckTx(tx, nil)
i++
}


Loading…
Cancel
Save