[release-12.0.2] Chore: Address linting issues to unblock CI (#106610)

Chore: Address linting issues to unblock CI
This commit is contained in:
Matheus Macabu
2025-06-12 16:01:28 +02:00
committed by GitHub
parent 6cb121d4e8
commit 25b41aabd5
7 changed files with 16 additions and 2 deletions
+5 -2
View File
@@ -24,7 +24,10 @@ func TestStatic(t *testing.T) {
// Create a temporary directory for test files
tmpDir, err := os.MkdirTemp("", "static-test")
require.NoError(t, err)
defer os.RemoveAll(tmpDir)
defer func() {
err := os.RemoveAll(tmpDir)
require.NoError(t, err)
}()
// Create test files
testFiles := map[string]string{
@@ -34,7 +37,7 @@ func TestStatic(t *testing.T) {
for path, content := range testFiles {
fullPath := filepath.Join(tmpDir, path)
err := os.MkdirAll(filepath.Dir(fullPath), 0o755)
err := os.MkdirAll(filepath.Dir(fullPath), 0o750)
require.NoError(t, err)
err = os.WriteFile(fullPath, []byte(content), 0o644)
require.NoError(t, err)