Skip to content

Commit fcad795

Browse files
committed
load final count for assertion
1 parent 519c82f commit fcad795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trie/dtrie/dtrie_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ func TestIterate(t *testing.T) {
155155
for atomic.LoadInt64(&c) < 100 {
156156
}
157157
close(stop)
158-
assert.True(t, c > 99 && c < 1000)
158+
cf := atomic.LoadInt64(&c)
159+
assert.True(t, cf > 99 && cf < 1000)
159160
// test with collisions
160161
n = insertTest(t, collisionHash, 1000)
161162
atomic.StoreInt64(&c, 0)

0 commit comments

Comments
 (0)