[release-11.6.3]: Fix static tests (#106136)

pull/106233/head
Sofia Papagiannaki 7 months ago committed by GitHub
parent 28e6d9767d
commit 1748a14f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      pkg/api/static/static_test.go

@ -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{

Loading…
Cancel
Save