Skip to content

Commit 566a355

Browse files
author
Dani Reinón
committed
fix: sleep before listing buckets
1 parent bc48965 commit 566a355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_storage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22
from pathlib import Path
3+
from time import sleep
34

45
from typing import TYPE_CHECKING
56
from uuid import uuid4
@@ -23,6 +24,7 @@ def delete_left_buckets(request, storage_client: SupabaseStorageClient):
2324
"""Ensures no test buckets are left"""
2425

2526
def finalizer():
27+
sleep(5)
2628
for bucket in storage_client.list_buckets():
2729
if bucket.id.startswith("pytest-"):
2830
storage_client.empty_bucket(bucket.id)

0 commit comments

Comments
 (0)