chore: enable usetesting linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-06-26 08:05:50 +02:00
parent b0b5cc4236
commit 4089a92147
5 changed files with 10 additions and 8 deletions
+1 -3
View File
@@ -17,7 +17,6 @@ limitations under the License.
package backup
import (
"os"
"testing"
"github.com/sirupsen/logrus"
@@ -254,8 +253,7 @@ func TestItemCollectorBackupNamespaces(t *testing.T) {
for _, tc := range tests {
t.Run(tc.name, func(*testing.T) {
tempDir, err := os.MkdirTemp("", "")
require.NoError(t, err)
tempDir := t.TempDir()
var unstructuredNSList unstructured.UnstructuredList
for _, ns := range tc.namespaces {