Skip to content

Commit

Permalink
ensure the empty dir is created
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmichels committed Jun 23, 2024
1 parent 4d6d65c commit f9f384d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/policy/read_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package policy

import (
"os"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -83,6 +84,8 @@ func TestReadFromDir(t *testing.T) {

assert := assert.New(t)
require := require.New(t)
err := os.MkdirAll("testdata/empty", 0755)
require.NoError(err)
for name, tc := range cases {
t.Run(name, func(t *testing.T) {
policies, err := ReadFromDir(tc.dir)
Expand Down

0 comments on commit f9f384d

Please sign in to comment.