Skip to content

Commit

Permalink
Adjust time of run gc
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Nov 21, 2024
1 parent 7407b35 commit d89afa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_gc/test_gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit d89afa5

Please sign in to comment.