Skip to content

Commit 646f3c9

Browse files
committed
Merge pull request #747 from mziccard/master
Fix flaky RemoteGcsHelperTest.testForceDeleteTimeout
2 parents 9e5c173 + 86e23d5 commit 646f3c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcloud-java-storage/src/test/java/com/google/gcloud/storage/RemoteGcsHelperTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ public void testForceDelete() throws InterruptedException, ExecutionException {
132132
@Test
133133
public void testForceDeleteTimeout() throws InterruptedException, ExecutionException {
134134
Storage storageMock = EasyMock.createMock(Storage.class);
135-
EasyMock.expect(storageMock.list(BUCKET_NAME)).andReturn(blobPage).anyTimes();
135+
EasyMock.expect(storageMock.list(BUCKET_NAME, BlobListOption.versions(true)))
136+
.andReturn(blobPage).anyTimes();
136137
for (BlobInfo info : blobList) {
137138
EasyMock.expect(storageMock.delete(info.blobId())).andReturn(true).anyTimes();
138139
}

0 commit comments

Comments
 (0)