Skip to content

Commit

Permalink
pkg/cache: set explicit mode to handle upcoming go1.22 defaulting in …
Browse files Browse the repository at this point in the history
…fstest.MapFS (#1279)

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford committed Apr 19, 2024
1 parent 81b3c02 commit aa0777c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ func genTestCaches(t *testing.T, fbcFS fs.FS) []Cache {
}

var validFS = fstest.MapFS{
".": &fstest.MapFile{
Mode: fs.ModeDir,
},
"cockroachdb.json": &fstest.MapFile{
Data: []byte(`{
"schema": "olm.package",
Expand Down

0 comments on commit aa0777c

Please sign in to comment.