Skip to content

Commit

Permalink
chore: Add comment to justify sleep in finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Reinón committed Jan 31, 2022
1 parent 127ef98 commit 0554239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def delete_left_buckets(request, storage_client: SupabaseStorageClient):
"""Ensures no test buckets are left"""

def finalizer():
# Sleep 15 seconds in order to let buckets be deleted before the double-check
sleep(15)
for bucket in storage_client.list_buckets():
if bucket.id.startswith("pytest-"):
Expand Down

0 comments on commit 0554239

Please sign in to comment.