Skip to content

Commit e87525e

Browse files
committed
test: add unit test to confirm absence of pageToken param in listBuckets request, which causes the 1000+ buckets infinite pagination loop
1 parent 6235ccb commit e87525e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/storage/internal/rest/stub_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ TEST(RestStubTest, ListBucketsIncludesPageTokenWhenPresentInRequest) {
203203
EXPECT_CALL(*mock,
204204
Get(ExpectedContext(),
205205
ResultOf(
206-
"request parameters contain expected pageToken",
206+
"request parameters contain 'pageToken'",
207207
[](RestRequest const& r) { return r.parameters(); },
208208
Contains(Pair("pageToken", expected_token)))))
209209
.WillOnce(Return(PermanentError()));

0 commit comments

Comments
 (0)