From 0c77f49eab050c76e824fa5e96476626f29ccf9d Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 18 May 2015 10:20:21 +1000 Subject: [PATCH] Made a test work on both Linux and OS X. --- 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 a2ce968..2f8f0fb 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -1040,7 +1040,7 @@ func (t *ReadOnlyTest) OpenForWrite() { func (t *ReadOnlyTest) Chtimes() { err := os.Chtimes(path.Join(t.Dir, "foo"), time.Now(), time.Now()) - ExpectThat(err, Error(HasSubstr("not permitted"))) + ExpectThat(err, Error(MatchesRegexp("read-only|not permitted"))) } func (t *ReadOnlyTest) Chmod() {