From 0a997e8ffca4dfe33d03043a0101732ef51197e6 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 15 Sep 2026 09:42:06 +0200 Subject: [PATCH] Simplified temporary directory creation for tests --- tests/run_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/run_test.go b/tests/run_test.go index 87888f8..e7379c4 100644 --- a/tests/run_test.go +++ b/tests/run_test.go @@ -63,9 +63,7 @@ func (test *run) RunBuild(t *testing.T, name string, build *config.Build) { } originalHash := uint32(0) - tmpDir := os.TempDir() - err := os.MkdirAll(tmpDir, 0o755) - assert.Nil(t, err) + tmpDir := t.TempDir() executable := build.Executable() executable = filepath.Join(tmpDir, filepath.Base(executable)) -- 2.51.2