From 26b54f80db3172d58b94bc9bfc6d3d3a48dbe472 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 12 Jan 2025 19:18:32 +0100 Subject: [PATCH] Satisfy linter for createTempFile --- internal/environment/nomad_manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/environment/nomad_manager_test.go b/internal/environment/nomad_manager_test.go index 4fe3a565..05ddc9c8 100644 --- a/internal/environment/nomad_manager_test.go +++ b/internal/environment/nomad_manager_test.go @@ -446,7 +446,7 @@ func mockWatchAllocations(ctx context.Context, apiMock *nomad.ExecutorAPIMock) { func createTempFile(t *testing.T, content string) *os.File { t.Helper() - file, err := os.CreateTemp("", "test") + file, err := os.CreateTemp(t.TempDir(), "test") require.NoError(t, err) n, err := file.WriteString(content) require.NoError(t, err)