Skip to content

Commit

Permalink
Fixed a test data race
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <[email protected]>
  • Loading branch information
kozlovic authored and wallyqs committed Aug 23, 2024
1 parent 077627c commit 1dc8f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3607,7 +3607,7 @@ func TestClusterSetupMsgs(t *testing.T) {

var totalOut int
for _, server := range c.servers {
totalOut += int(server.outMsgs)
totalOut += int(atomic.LoadInt64(&server.outMsgs))
}
totalExpected := numServers * numServers
if totalOut >= totalExpected {
Expand Down

0 comments on commit 1dc8f39

Please sign in to comment.