mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
modernize: Use range int
Added in Go 1.22 Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -203,7 +203,7 @@ func (s *DockerSwarmSuite) TestServiceLogsFollow(c *testing.T) {
|
||||
}
|
||||
}()
|
||||
|
||||
for i := 0; i < 3; i++ {
|
||||
for range 3 {
|
||||
msg := <-ch
|
||||
assert.NilError(c, msg.err)
|
||||
assert.Assert(c, is.Contains(string(msg.data), "log test"))
|
||||
|
||||
Reference in New Issue
Block a user