Skip to content

Commit 9433757

Browse files
committed
@GitHK review: remove sleeps
1 parent 28ae941 commit 9433757

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/storage/tests/unit/test_rpc_handlers_paths.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# pylint:disable=unused-variable
88

99

10-
import asyncio
1110
import datetime
1211
import random
1312
from pathlib import Path
@@ -77,7 +76,6 @@ async def _assert_compute_path_size(
7776
location_id=location_id,
7877
path=path,
7978
)
80-
await asyncio.sleep(1)
8179
async for job_composed_result in wait_and_get_result(
8280
storage_rpc_client,
8381
rpc_namespace=STORAGE_RPC_NAMESPACE,
@@ -94,6 +92,7 @@ async def _assert_compute_path_size(
9492
return received_size
9593

9694
pytest.fail("Job did not finish")
95+
return ByteSize(0) # for mypy
9796

9897

9998
async def _assert_delete_paths(
@@ -111,7 +110,6 @@ async def _assert_delete_paths(
111110
location_id=location_id,
112111
paths=paths,
113112
)
114-
await asyncio.sleep(1)
115113
async for job_composed_result in wait_and_get_result(
116114
storage_rpc_client,
117115
rpc_namespace=STORAGE_RPC_NAMESPACE,

0 commit comments

Comments
 (0)