Skip to content

Commit 2c8416c

Browse files
committed
use UUID for unique suffix in IBucketTester
1 parent 2df20c8 commit 2c8416c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/tests/bucket_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from queue import Queue
1111
from typing import BinaryIO
1212
from unittest import TestCase
13+
import uuid
1314

1415
import pyarrow as pa
1516
import pyarrow.parquet as pq
@@ -87,7 +88,7 @@ def __init__(self, storage: IBucket, test_case: TestCase) -> None:
8788
self.storage = storage
8889
self.test_case = test_case
8990
# Next is a unique suffix to be used in the names of dirs and files, so they will be unique
90-
self.us = f"{iTSms.now() % 100_000_000:08d}"
91+
self.us = uuid.uuid4().hex
9192

9293
def cleanup(self) -> None:
9394
self.storage.remove_prefix(f"dir{self.us}")

0 commit comments

Comments
 (0)