From 053725a4b8e3905a2774b7eca4ad2070533c39c3 Mon Sep 17 00:00:00 2001 From: yanghua Date: Fri, 18 Oct 2024 20:24:38 +0800 Subject: [PATCH] Run test cases on hns --- tosfs/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tosfs/core.py b/tosfs/core.py index 4cf88aa..81c866f 100644 --- a/tosfs/core.py +++ b/tosfs/core.py @@ -845,7 +845,7 @@ def isdir(self, path: str) -> bool: try: resp = retryable_func_executor( - lambda: self.tos_client.head_object(bucket, key) and True, + lambda: self.tos_client.head_object(bucket, key), max_retry_num=self.max_retry_num, ) if self._is_fns_bucket(bucket):