Skip to content

Commit

Permalink
fixed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Austin committed Apr 4, 2016
1 parent 081384a commit 7e13664
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -877,13 +877,20 @@ public void testReadingSecondDocumentNotExistIncludingMeta() {
} }


final ExcerptTailer tailer = chronicle.createTailer(); final ExcerptTailer tailer = chronicle.createTailer();
StringBuilder event = new StringBuilder();
while (true) {
try (DocumentContext dc = tailer.readingDocument(true)) {


try (DocumentContext dc = tailer.readingDocument(true)) { ValueIn in = dc.wire().read(event);
String text = dc.wire().read(() -> "FirstName").text(); if (!StringUtils.isEqual(event, "FirstName"))
Assert.assertEquals("Quartilla", text); continue;

in.text("Quartilla", Assert::assertEquals);
break;
}
} }


try (DocumentContext dc = tailer.readingDocument(true)) { try (DocumentContext dc = tailer.readingDocument()) {
assertFalse(dc.isPresent()); assertFalse(dc.isPresent());
} }
} }
Expand Down

0 comments on commit 7e13664

Please sign in to comment.