build: use "for i := range n", added in go1.22
This commit is contained in:
@@ -206,7 +206,7 @@ func TestJobRunPanic(t *testing.T) {
|
||||
runtime.Gosched() // yield to make sure job is updated
|
||||
|
||||
// Wait a short time for the panic to propagate
|
||||
for i := uint(0); i < 10; i++ {
|
||||
for i := range uint(10) {
|
||||
job.mu.Lock()
|
||||
e := job.Error
|
||||
job.mu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user