Skip to content

Commit

Permalink
fix data race in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
  • Loading branch information
pfi79 committed Jul 4, 2024
1 parent 4dc1f47 commit 1a76fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orderer/consensus/smartbft/util_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func createBFTChainUsingMocks(t *testing.T, node *Node, configInfo *ConfigInfo)
return
}
t.Logf("Node %d requested SendTransaction to node %d", node.NodeId, targetNodeId)
err = node.sendRequest(node.NodeId, targetNodeId, message)
err := node.sendRequest(node.NodeId, targetNodeId, message)
require.NoError(t, err)
}).Maybe()
egressCommMock.EXPECT().SendConsensus(mock.Anything, mock.Anything).Run(
Expand All @@ -564,7 +564,7 @@ func createBFTChainUsingMocks(t *testing.T, node *Node, configInfo *ConfigInfo)
return
}
t.Logf("Node %d requested SendConsensus to node %d of type <%s>", node.NodeId, targetNodeId, reflect.TypeOf(message.GetContent()))
err = node.sendMessage(node.NodeId, targetNodeId, message)
err := node.sendMessage(node.NodeId, targetNodeId, message)
require.NoError(t, err)
}).Maybe()

Expand Down

0 comments on commit 1a76fda

Please sign in to comment.