Skip to content

Commit

Permalink
sdk/python: prefetch blob download test fix (increase test object size)
Browse files Browse the repository at this point in the history
If applied, this MR will:

Adjust test object size in test_object_group_ops to comply with new prefetch blob download minimum size of 1MiB (was 128KiB).

Signed-off-by: Ryan Koo <[email protected]>
  • Loading branch information
rkoo19 committed Nov 15, 2024
1 parent 37d73f0 commit ec6483e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/tests/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Object Sizes
LARGE_FILE_SIZE = 20 * MIB
MEDIUM_FILE_SIZE = 2 * MIB
SMALL_FILE_SIZE = 100 * KIB

# ETL
Expand Down
6 changes: 3 additions & 3 deletions python/tests/integration/sdk/test_object_group_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from aistore.sdk.provider import Provider
from aistore.sdk.errors import InvalidBckProvider, AISError, JobInfoNotFound
from tests.const import (
SMALL_FILE_SIZE,
MEDIUM_FILE_SIZE,
OBJECT_COUNT,
TEST_TIMEOUT,
PREFIX_NAME,
Expand All @@ -29,8 +29,8 @@ class TestObjectGroupOps(RemoteEnabledTest):
def setUp(self) -> None:
super().setUp()
self.suffix = SUFFIX_NAME
# Use a slightly larger file size to allow for blob threshold (must be > 128KiB)
self.file_size = SMALL_FILE_SIZE * 5
# Use a slightly larger file size to allow for blob threshold (must be > 1MiB)
self.file_size = MEDIUM_FILE_SIZE
self.obj_names = self._create_objects(
suffix=self.suffix, obj_size=self.file_size
)
Expand Down

0 comments on commit ec6483e

Please sign in to comment.