6ad84c5065
When testing with -race, sometimes the random source generate the same string for consecutive calls, causing duplicated voter address. So the number of votes in DB is not 20. To fix this, we ensure unique addresses are generated, by using a map for tracking which one was produced, and skip the duplicated address and generated new one. Testing with: go test -race -v -count=1000 -run=TestPaginatedVotesQuery now passes. Updates #9010 |
||
---|---|---|
.. | ||
client | ||
keeper | ||
legacy | ||
simulation | ||
spec | ||
types | ||
abci.go | ||
abci_test.go | ||
common_test.go | ||
genesis.go | ||
genesis_test.go | ||
handler.go | ||
handler_test.go | ||
module.go | ||
module_test.go |