Skip to content

Commit

Permalink
Fix flaky RemoteGcsHelperTest.testForceDeleteTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Mar 14, 2016
1 parent ddd02aa commit 86e23d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ public void testForceDelete() throws InterruptedException, ExecutionException {
@Test
public void testForceDeleteTimeout() throws InterruptedException, ExecutionException {
Storage storageMock = EasyMock.createMock(Storage.class);
EasyMock.expect(storageMock.list(BUCKET_NAME)).andReturn(blobPage).anyTimes();
EasyMock.expect(storageMock.list(BUCKET_NAME, BlobListOption.versions(true)))
.andReturn(blobPage).anyTimes();
for (BlobInfo info : blobList) {
EasyMock.expect(storageMock.delete(info.blobId())).andReturn(true).anyTimes();
}
Expand Down

0 comments on commit 86e23d5

Please sign in to comment.