diff --git a/samples/flushfs/flush_fs_test.go b/samples/flushfs/flush_fs_test.go index 8b5d9aa..a56f52f 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -1042,7 +1042,7 @@ func (t *ReadOnlyTest) OpenForWrite() { func (t *ReadOnlyTest) Chtimes() { err := os.Chtimes(path.Join(t.Dir, "foo"), time.Now(), time.Now()) - ExpectThat(err, Error(MatchesRegexp("read-only|not permitted"))) + ExpectThat(err, Error(MatchesRegexp("read-only|not permitted|permission denied"))) } func (t *ReadOnlyTest) Chmod() {