aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkg/pkg_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/pkg_test.go')
-rw-r--r--pkg/pkg_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/pkg_test.go b/pkg/pkg_test.go
index aa5016c1..775b68d9 100644
--- a/pkg/pkg_test.go
+++ b/pkg/pkg_test.go
@@ -587,7 +587,9 @@ func checkWithCache(t *testing.T, testCases []cacheTestCase) {
// destroy empty fault directory
if err := os.Remove(base.Append("fault").String()); err != nil {
- t.Fatal(err)
+ if !errors.Is(err, syscall.ENOTEMPTY) {
+ t.Fatal(err)
+ }
}
want := tc.want.hash()