Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 4a94ed6

Browse files
committed
remove write related changes from contest.py
1 parent 11ff2f6 commit 4a94ed6

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

tests/perf/microbenchmarks/conftest.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
AsyncAppendableObjectWriter,
2727
)
2828
from google.cloud.storage._experimental.asyncio.async_grpc_client import AsyncGrpcClient
29-
from tests.perf.microbenchmarks.writes.parameters import WriteParameters
3029

3130
_OBJECT_NAME_PREFIX = "micro-benchmark"
3231

@@ -137,16 +136,10 @@ def _create_files(num_files, bucket_name, bucket_type, object_size, chunk_size=1
137136
@pytest.fixture
138137
def workload_params(request):
139138
params = request.param
140-
if isinstance(params, WriteParameters):
141-
files_names = [
142-
f"{_OBJECT_NAME_PREFIX}-{uuid.uuid4().hex[:5]}"
143-
for _ in range(params.num_files)
144-
]
145-
else:
146-
files_names = _create_files(
147-
params.num_files,
148-
params.bucket_name,
149-
params.bucket_type,
150-
params.file_size_bytes,
151-
)
139+
files_names = _create_files(
140+
params.num_files,
141+
params.bucket_name,
142+
params.bucket_type,
143+
params.file_size_bytes,
144+
)
152145
return params, files_names

0 commit comments

Comments
 (0)