diff --git a/build_test.go b/build_test.go index 11bed31..9451f2c 100644 --- a/build_test.go +++ b/build_test.go @@ -54,6 +54,9 @@ func testBuild(t *testing.T, context spec.G, it spec.S) { err = os.MkdirAll(filepath.Join(layersDir, "mod-cache"), os.ModePerm) Expect(err).NotTo(HaveOccurred()) + _, err = os.CreateTemp(filepath.Join(layersDir, "mod-cache"), "example") + Expect(err).NotTo(HaveOccurred()) + now := time.Now() clock = chronos.NewClock(func() time.Time { return now