Skip to content

Commit b2d0f7d

Browse files
committed
---
yaml --- r: 9233 b: refs/heads/spanner-gapic-migration c: ac6a398 h: refs/heads/master i: 9231: 89b7c3c
1 parent c752fdf commit b2d0f7d

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ refs/tags/v0.35.0: c28951c5f4cc97a1be07900d19df6984115a4bd6
8181
refs/tags/v0.36.0: 6b75c61f73e6827b3ca379bd54f88f750290162f
8282
refs/tags/v0.37.0: db2e142f92601709fdd48db159776f905742e30f
8383
refs/heads/mrschmidt-sizefix: 627a3bfa30bb6f4f76af47b228c38b208dd921e0
84-
refs/heads/spanner-gapic-migration: c6f38e3592498d6d6184b838bf245bfa133ede04
84+
refs/heads/spanner-gapic-migration: ac6a39888e57f48446c4e703afbfa5e10666c0e6
8585
refs/tags/v0.38.0: c235ee4df5e1248e1769dae3f86a0d7ab7fd8301
8686
refs/tags/v0.39.0: ab231c9d22475242a43d6d9554aa4a3f736dab01
8787
refs/tags/v0.40.0: a1d5b05206cce7734365f1b910396a2c9d6605ec

branches/spanner-gapic-migration/google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITStorageTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public void testListBlobsEmptySelectedFields() throws InterruptedException {
408408
}
409409
}
410410

411-
@Test(timeout = 5000)
411+
@Test(timeout = 7500)
412412
public void testListBlobRequesterPays() throws InterruptedException {
413413
BlobInfo blob1 =
414414
BlobInfo.newBuilder(BUCKET, "test-list-blobs-empty-selected-fields-blob1")
@@ -434,16 +434,19 @@ public void testListBlobRequesterPays() throws InterruptedException {
434434
}
435435

436436
String projectId = remoteStorageHelper.getOptions().getProjectId();
437-
for (; ; ) {
437+
while (true) {
438438
Page<Blob> page =
439439
storage.list(
440440
BUCKET,
441441
Storage.BlobListOption.prefix("test-list-blobs-empty-selected-fields-blob"),
442442
Storage.BlobListOption.fields(),
443443
Storage.BlobListOption.userProject(projectId));
444-
int size = Iterators.size(page.iterateAll().iterator());
445-
if (size == 1) {
446-
break;
444+
List<Blob> blobs = Lists.newArrayList(page.iterateAll());
445+
// If the list is empty, maybe the blob isn't visible yet; wait and try again.
446+
// Otherwise, expect one blob, since we only put in one above.
447+
if (!blobs.isEmpty()) {
448+
assertThat(blobs).hasSize(1);
449+
return;
447450
}
448451
Thread.sleep(500);
449452
}

0 commit comments

Comments
 (0)