We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10e33d6 commit 519c82fCopy full SHA for 519c82f
1 file changed
trie/dtrie/dtrie_test.go
@@ -161,9 +161,9 @@ func TestIterate(t *testing.T) {
161
atomic.StoreInt64(&c, 0)
162
echan = iterate(n, nil)
163
for _ = range echan {
164
- c++
+ atomic.AddInt64(&c, 1)
165
}
166
- assert.Equal(t, int64(1000), c)
+ assert.Equal(t, int64(1000), atomic.LoadInt64(&c))
167
168
169
func TestSize(t *testing.T) {
0 commit comments