Skip to content

Commit b516689

Browse files
Forcing a single response from empty list bucket to ensure multiple empty entries
1 parent 392bae9 commit b516689

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/bucket/test_bucket.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ def list_file_versions(
21912191
account_auth_token,
21922192
start_file_name=None,
21932193
start_file_id=None,
2194-
max_file_count=None,
2194+
max_file_count=None, # noqa
21952195
prefix=None,
21962196
):
21972197
if self.last_queried_file != start_file_name:
@@ -2201,15 +2201,15 @@ def list_file_versions(
22012201
account_auth_token,
22022202
start_file_name,
22032203
start_file_id,
2204-
max_file_count,
2204+
1, # Forcing only a single file per response.
22052205
prefix,
22062206
)
22072207

22082208
def list_file_names(
22092209
self,
22102210
account_auth_token,
22112211
start_file_name=None,
2212-
max_file_count=None,
2212+
max_file_count=None, # noqa
22132213
prefix=None,
22142214
):
22152215
if self.last_queried_file != start_file_name:
@@ -2218,7 +2218,7 @@ def list_file_names(
22182218
return super().list_file_names(
22192219
account_auth_token,
22202220
start_file_name,
2221-
max_file_count,
2221+
1, # Forcing only a single file per response.
22222222
prefix,
22232223
)
22242224

0 commit comments

Comments
 (0)