Skip to content

Commit 08b8600

Browse files
committed
break out of loop to avoid race condition
1 parent 836ef31 commit 08b8600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trie/dtrie/dtrie_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func TestIterate(t *testing.T) {
114114
c++
115115
if c == 100 {
116116
close(stop)
117+
break
117118
}
118119
}
119120
assert.True(t, c == 100)

0 commit comments

Comments
 (0)