We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73088a9 commit 2936406Copy full SHA for 2936406
pkg/scheduler/fragment_table/fragment_table_test.go
@@ -116,20 +116,20 @@ func TestFragmentTable_ConcurrentAccess(t *testing.T) {
116
wg.Add(numGoroutines * 2)
117
118
// start writers
119
- for i := 0; i < numGoroutines; i++ {
+ for i := range numGoroutines {
120
go func(id int) {
121
defer wg.Done()
122
- for j := 0; j < numOperations; j++ {
+ for j := range numOperations {
123
ft.AddAddressByID(uint64(id), uint64(j), "addr")
124
}
125
}(i)
126
127
128
// start readers
129
130
131
132
+ for range numOperations {
133
134
135
0 commit comments