From 08534b28a2195d30bb3c45dce0b834f3696028b8 Mon Sep 17 00:00:00 2001 From: Sai Teja Pratap Date: Thu, 15 Apr 2021 12:01:58 -0700 Subject: [PATCH] Fix TestReadMyOwnWriteFuse for gcs --- internal/goofys_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/goofys_test.go b/internal/goofys_test.go index 96852ab7..292ab557 100644 --- a/internal/goofys_test.go +++ b/internal/goofys_test.go @@ -4200,10 +4200,12 @@ func (s *GoofysTest) testReadMyOwnWriteFuse(t *C, externalUpdate bool) { if !externalUpdate { // we flushed and ttl expired, next lookup should // realize nothing is changed and NOT invalidate the - // cache. Except ADLv1 because PUT there doesn't + // cache. Except ADLv1,GCS because PUT there doesn't // return the mtime, so the open above will think the // file is updated and not re-use cache - if _, adlv1 := s.cloud.(*ADLv1); !adlv1 { + _, adlv1 := s.cloud.(*ADLv1) + _, isGCS := s.cloud.(*GCSBackend) + if !adlv1 && !isGCS { cloud.err = fuse.EINVAL } } else {