----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/54586/#review159075 -----------------------------------------------------------
geode-core/src/test/java/org/apache/geode/internal/logging/log4j/custom/CustomConfiguration.java (line 53) <https://reviews.apache.org/r/54586/#comment230020> Looks like this method is also used in CustomConfigWithLogServiceIntegrationTest. Did you also run that test on both platform as well? geode-core/src/test/java/org/apache/geode/internal/logging/log4j/custom/CustomConfiguration.java (line 60) <https://reviews.apache.org/r/54586/#comment230019> Looks like this method is never used in the project. We can either delete it or refactor the previous method to call this method. - Jinmei Liao On Dec. 13, 2016, 11:13 p.m., Kai Jiang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/54586/ > ----------------------------------------------------------- > > (Updated Dec. 13, 2016, 11:13 p.m.) > > > Review request for geode, Jinmei Liao, Kirk Lund, and Dan Smith. > > > Bugs: geode-2172 > https://issues.apache.org/jira/browse/geode-2172 > > > Repository: geode > > > Description > ------- > > cacheLogWriterMessageShouldMatchCustomConfig fails with AssertionError. > > The issues is related to incorrect regex pattern. The regex pattern used to > match log string contains newline character. To fix this issue, I've replaced > Unix newline character in regex pattern into `System.lineSeparator()`, a > Platform-dependent newline character in Java. > > > Diffs > ----- > > > geode-core/src/test/java/org/apache/geode/internal/logging/log4j/custom/CustomConfiguration.java > 47515e6 > > Diff: https://reviews.apache.org/r/54586/diff/ > > > Testing > ------- > > I've run this unit test both on Windows and MacOS. And it passes. > > > Thanks, > > Kai Jiang > >