mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
run modernize -fix ./...
Using golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize + some manual cleanup in libpod/lock/shm/shm_lock_test.go as it generated an unused variable + restored one removed comment Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -257,7 +257,7 @@ var _ = Describe("Podman pause", func() {
|
||||
})
|
||||
|
||||
It("Pause a bunch of running containers", func() {
|
||||
for i := 0; i < 3; i++ {
|
||||
for i := range 3 {
|
||||
name := fmt.Sprintf("test%d", i)
|
||||
run := podmanTest.Podman([]string{"run", "-dt", "--name", name, NGINX_IMAGE})
|
||||
run.WaitWithDefaultTimeout()
|
||||
@@ -284,7 +284,7 @@ var _ = Describe("Podman pause", func() {
|
||||
})
|
||||
|
||||
It("Unpause a bunch of running containers", func() {
|
||||
for i := 0; i < 3; i++ {
|
||||
for i := range 3 {
|
||||
name := fmt.Sprintf("test%d", i)
|
||||
run := podmanTest.Podman([]string{"run", "-dt", "--name", name, NGINX_IMAGE})
|
||||
run.WaitWithDefaultTimeout()
|
||||
|
||||
Reference in New Issue
Block a user