-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ChronicleMethodReaderTest.shouldFilterByMultipleInclusionRegex #1588
Conversation
src/test/java/net/openhft/chronicle/queue/internal/reader/ChronicleMethodReaderTest.java
Show resolved
Hide resolved
@Test | ||
public void shouldFilterByMultipleInclusionRegex() { | ||
basicReader().withInclusionRegex(".*bye$").withInclusionRegex(".*o.*").execute(); | ||
basicReader() | ||
.withInclusionRegex(".*bye.*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yevgenp does this include OR or AND? We should specify in the javadoc what happens if you specify multiple inclusion regexes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AND
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tgd I have rebased on develop today. Please merge if you are happy with this
@Test(expected = IllegalStateException.class) | ||
public void cantMoveToEndDuringDocumentReading() { | ||
File dir = getTmpDir(); | ||
try (SingleChronicleQueue queue = ChronicleQueue.singleBuilder(dir).build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a general note, we should use testBlockSize
in tests as per 91bc0e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
assertTrue(dc.isMetaData()); | ||
assertEquals("header", dc.wire().readEvent(String.class)); | ||
assertTrue(tailer.toString().contains("StoreTailer{")); | ||
tailer.toStart();//forbidden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the additional test coverage
Quality Gate passedIssues Measures |
Closes #1150, #821