From 4eb75f68cf96ca138f682f7d7d9a3d0ebb6a9bc5 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sat, 29 Mar 2025 23:50:33 -0700 Subject: [PATCH] test/e2e: fix unused linter warning This is shown when golangci-lint is run with --tests=false > test/e2e/config.go:7:2: var fedoraMinimal is unused (unused) > fedoraMinimal = "quay.io/libpod/systemd-image:20240124" > ^ > test/e2e/config.go:18:2: var volumeTest is unused (unused) > volumeTest = "quay.io/libpod/volume-plugin-test-img:20220623" > ^ Signed-off-by: Kir Kolyshkin --- test/e2e/config.go | 2 -- test/e2e/config_test.go | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 test/e2e/config_test.go diff --git a/test/e2e/config.go b/test/e2e/config.go index ed468d5646..2e5d3356b2 100644 --- a/test/e2e/config.go +++ b/test/e2e/config.go @@ -4,7 +4,6 @@ package integration var ( REDIS_IMAGE = "quay.io/libpod/redis:alpine" - fedoraMinimal = "quay.io/libpod/systemd-image:20240124" ALPINE = "quay.io/libpod/alpine:latest" ALPINELISTTAG = "quay.io/libpod/alpine:3.10.2" ALPINELISTDIGEST = "quay.io/libpod/alpine@sha256:fa93b01658e3a5a1686dc3ae55f170d8de487006fb53a28efcd12ab0710a2e5f" @@ -15,7 +14,6 @@ var ( INFRA_IMAGE = "quay.io/libpod/k8s-pause:3.5" BB = "quay.io/libpod/busybox:latest" HEALTHCHECK_IMAGE = "quay.io/libpod/alpine_healthcheck:latest" - volumeTest = "quay.io/libpod/volume-plugin-test-img:20220623" // ImageCacheDir is initialized at runtime. // e.g., filepath.Join(os.TempDir(), "imagecachedir") diff --git a/test/e2e/config_test.go b/test/e2e/config_test.go new file mode 100644 index 0000000000..86ce50475d --- /dev/null +++ b/test/e2e/config_test.go @@ -0,0 +1,8 @@ +//go:build linux || freebsd + +package integration + +var ( + fedoraMinimal = "quay.io/libpod/systemd-image:20240124" + volumeTest = "quay.io/libpod/volume-plugin-test-img:20220623" +)