Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] fix(test): Disable `_catalog_cache.clear` when cache is diabled. (#8461)

Mini Yubf0a0646e5f6
diff --git a/clients/client-python/tests/integration/test_gvfs_with_s3.py b/clients/client-python/tests/integration/test_gvfs_with_s3.py
index 76c56e7c35..3cc97bd344 100644
--- a/clients/client-python/tests/integration/test_gvfs_with_s3.py
+++ b/clients/client-python/tests/integration/test_gvfs_with_s3.py
@@ -278,7 +278,10 @@ class TestGvfsWithS3(TestGvfsWithHDFS):
**self.conf,
)
- fs.operations._catalog_cache.clear()
+ if fs.operations._enable_fileset_metadata_cache:
+ fs.operations._fileset_cache.clear()
+ fs.operations._catalog_cache.clear()
+
s3_fs = fs.operations._get_actual_filesystem(mkdir_dir, None)
config_kwargs = s3_fs.config_kwargs
self.assertEqual("virtual", config_kwargs.get("s3").get("addressing_style"))