Skip to content

Commit

Permalink
Satisfy linter for createTempFile
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth committed Jan 12, 2025
1 parent 473e839 commit 26b54f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/environment/nomad_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26b54f8

Please sign in to comment.