From d2bb866d3f4a630a28900c870cf274141154b1e8 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 17 Jan 2023 11:22:24 +0100 Subject: [PATCH] Remove useless Sprintf --- test/e2e/storage/csi_mock/csi_selinux_mount.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/e2e/storage/csi_mock/csi_selinux_mount.go b/test/e2e/storage/csi_mock/csi_selinux_mount.go index fdbcee979d0..b6b74c78c69 100644 --- a/test/e2e/storage/csi_mock/csi_selinux_mount.go +++ b/test/e2e/storage/csi_mock/csi_selinux_mount.go @@ -18,7 +18,6 @@ package csi_mock import ( "context" - "fmt" "sync/atomic" "github.com/onsi/ginkgo/v2" @@ -173,7 +172,7 @@ var _ = utils.SIGDescribe("CSI Mock selinux on mount", func() { // Skip scheduler, it would block scheduling the second pod with ReadWriteOncePod PV. pod, err = m.cs.CoreV1().Pods(pod.Namespace).Get(ctx, pod.Name, metav1.GetOptions{}) - framework.ExpectNoError(err, fmt.Sprintf("getting the initial pod")) + framework.ExpectNoError(err, "getting the initial pod") nodeSelection := e2epod.NodeSelection{Name: pod.Spec.NodeName} pod2, err := startPausePodWithSELinuxOptions(f.ClientSet, claim, nodeSelection, f.Namespace.Name, t.secondPodSELinuxOpts) framework.ExpectNoError(err, "creating second pod with SELinux context %s", t.secondPodSELinuxOpts)