mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
blockchain: comment out logger in test code that causes a race condition (#3500)
This commit is contained in:
parent
c7bb998497
commit
6c1a4b5137
@ -42,7 +42,9 @@ func (p testPeer) runInputRoutine() {
|
|||||||
func (p testPeer) simulateInput(input inputData) {
|
func (p testPeer) simulateInput(input inputData) {
|
||||||
block := &types.Block{Header: types.Header{Height: input.request.Height}}
|
block := &types.Block{Header: types.Header{Height: input.request.Height}}
|
||||||
input.pool.AddBlock(input.request.PeerID, block, 123)
|
input.pool.AddBlock(input.request.PeerID, block, 123)
|
||||||
input.t.Logf("Added block from peer %v (height: %v)", input.request.PeerID, input.request.Height)
|
// TODO: uncommenting this creates a race which is detected by: https://github.com/golang/go/blob/2bd767b1022dd3254bcec469f0ee164024726486/src/testing/testing.go#L854-L856
|
||||||
|
// see: https://github.com/tendermint/tendermint/issues/3390#issue-418379890
|
||||||
|
// input.t.Logf("Added block from peer %v (height: %v)", input.request.PeerID, input.request.Height)
|
||||||
}
|
}
|
||||||
|
|
||||||
type testPeers map[p2p.ID]testPeer
|
type testPeers map[p2p.ID]testPeer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user