Skip to content

Commit 60bc15d

Browse files
authored
---
yaml --- r: 7639 b: refs/heads/tswast-patch-1 c: 82b2951 h: refs/heads/master i: 7637: 6249d80 7635: aa64366 7631: facb147
1 parent 121a159 commit 60bc15d

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 54ac5fe749e4e7875eaf4382590467769fcbfc38
60+
refs/heads/tswast-patch-1: 82b2951d7ea8c45f79323b8bb134c477482f8571
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/google-cloud-logging/src/test/java/com/google/cloud/logging/BaseSystemTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,13 @@ public void testWriteAndListLogEntries() throws InterruptedException {
396396
assertNull(entry.getHttpRequest());
397397
assertNotNull(entry.getInsertId());
398398
assertNotNull(entry.getTimestamp());
399-
page = logging().listLogEntries(EntryListOption.filter(filter),
400-
EntryListOption.sortOrder(SortingField.TIMESTAMP, SortingOrder.DESCENDING));
399+
options = new EntryListOption[]{EntryListOption.filter(filter),
400+
EntryListOption.sortOrder(SortingField.TIMESTAMP, SortingOrder.DESCENDING)};
401+
page = logging().listLogEntries(options);
402+
while (Iterators.size(page.iterateAll()) < 2) {
403+
Thread.sleep(500);
404+
page = logging().listLogEntries(options);
405+
}
401406
iterator = page.iterateAll();
402407
Long lastTimestamp = iterator.next().getTimestamp();
403408
while (iterator.hasNext()) {

0 commit comments

Comments
 (0)