From cd3c1bb4700a2917d4aae432f8c101ab2fc004b2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 18 Sep 2019 16:27:50 +0200 Subject: [PATCH] flush_fs_test: match another error message --- samples/flushfs/flush_fs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {