Skip to content

Commit 1662e25

Browse files
authored
Modernize for loop using range over int (#173)
1 parent 30d1dfc commit 1662e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/hammer/loadtest/analysis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestHammerAnalyser_Stats(t *testing.T) {
3333
time.Sleep(100 * time.Millisecond)
3434

3535
baseTime := time.Now().Add(-1 * time.Minute)
36-
for i := 0; i < 10; i++ {
36+
for i := range 10 {
3737
ha.SeqLeafChan <- LeafTime{
3838
Index: uint64(i),
3939
QueuedAt: baseTime,

0 commit comments

Comments
 (0)