mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
bump go to 1.22
Many dependencies started using go 1.22 which means we have to follow in order to update. Disable the now depracted exportloopref linter as it was replaced by copyloopvar as go fixed the loop copy problem in 1.22[1] Another new chnage in go 1.22 is the for loop syntax over ints, the intrange linter chacks for this but there a lot of loops that have to be converted so I didn't do it here and disable th elinter for now, th eold syntax is still fine. [1] https://go.dev/blog/loopvar-preview Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -217,7 +217,6 @@ var _ = Describe("Podman healthcheck run", func() {
|
||||
// Run this test with and without healthcheck events, even without events
|
||||
// podman inspect and ps should still show accurate healthcheck results.
|
||||
for _, hcEvent := range []bool{true, false} {
|
||||
hcEvent := hcEvent
|
||||
testName := "hc_events=" + strconv.FormatBool(hcEvent)
|
||||
It("podman healthcheck single healthy result changes failed to healthy "+testName, func() {
|
||||
if !hcEvent {
|
||||
|
||||
Reference in New Issue
Block a user