From d89afa5b786694779cc18fa96f997c95a75b7a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Thu, 21 Nov 2024 16:45:52 +0800 Subject: [PATCH] Adjust time of run gc --- tests/test_gc/test_gc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_gc/test_gc.py b/tests/test_gc/test_gc.py index 03ce8cc7..ca086ba6 100644 --- a/tests/test_gc/test_gc.py +++ b/tests/test_gc/test_gc.py @@ -33,7 +33,7 @@ def create_test_file(): fp.close() large_file_name = 'large.txt' -large_file_size = 500*1024*1024 +large_file_size = 2*1024*1024*1024 large_file_path = os.getcwd() + '/' + large_file_name def create_large_file(): @@ -180,8 +180,8 @@ def test_gc_on_upload(repo, rm_fs): offset = api.get_upload_tmp_file_offset(repo.id, "/" + large_file_name) if offset == large_file_size: break - time.sleep (0.1) - time.sleep(1) + time.sleep (0.5) + time.sleep (1) run_gc(repo.id, rm_fs, '') while not future.done():