Skip to content

Commit

Permalink
Fix TestReadMyOwnWriteFuse for gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
dotslash authored and kahing committed Jul 12, 2021
1 parent e56d250 commit 08534b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/goofys_test.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 08534b2

Please sign in to comment.