From e7ab33e65f676e949e66a059e4cf67fa1b1c253e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Thu, 2 Feb 2023 21:27:08 +0100 Subject: [PATCH] Rename a variable to avoid an underscore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit golangci-lint linter: golint Signed-off-by: Miloslav Trmač --- integration/proxy_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration/proxy_test.go b/integration/proxy_test.go index aca1f119..7fd794b4 100644 --- a/integration/proxy_test.go +++ b/integration/proxy_test.go @@ -17,7 +17,7 @@ import ( ) // This image is known to be x86_64 only right now -const knownNotManifestListedImage_x8664 = "docker://quay.io/coreos/11bot" +const knownNotManifestListedImageX8664 = "docker://quay.io/coreos/11bot" // knownNotExtantImage would be very surprising if it did exist const knownNotExtantImage = "docker://quay.io/centos/centos:opensusewindowsubuntu" @@ -232,7 +232,7 @@ type byteFetch struct { } func runTestGetManifestAndConfig(p *proxy, img string) error { - v, err := p.callNoFd("OpenImage", []any{knownNotManifestListedImage_x8664}) + v, err := p.callNoFd("OpenImage", []any{knownNotManifestListedImageX8664}) if err != nil { return err } @@ -247,7 +247,7 @@ func runTestGetManifestAndConfig(p *proxy, img string) error { } // Also verify the optional path - v, err = p.callNoFd("OpenImageOptional", []any{knownNotManifestListedImage_x8664}) + v, err = p.callNoFd("OpenImageOptional", []any{knownNotManifestListedImageX8664}) if err != nil { return err } @@ -338,9 +338,9 @@ func (s *ProxySuite) TestProxy(c *check.C) { p, err := newProxy() c.Assert(err, check.IsNil) - err = runTestGetManifestAndConfig(p, knownNotManifestListedImage_x8664) + err = runTestGetManifestAndConfig(p, knownNotManifestListedImageX8664) if err != nil { - err = fmt.Errorf("Testing image %s: %v", knownNotManifestListedImage_x8664, err) + err = fmt.Errorf("Testing image %s: %v", knownNotManifestListedImageX8664, err) } c.Assert(err, check.IsNil)