Skip to content

Commit

Permalink
[TEST] Make test pass on windows - jackson uses platform line.separat…
Browse files Browse the repository at this point in the history
…or which messes up comparisons
  • Loading branch information
s1monw committed Sep 26, 2015
1 parent e01a74d commit ebe02ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void testParseFromJSON() throws IOException {
// now assert that we actually generate the same JSON
XContentBuilder builder = XContentFactory.jsonBuilder().prettyPrint();
queryBuilder.toXContent(builder, ToXContent.EMPTY_PARAMS);
assertEquals(query, builder.string());
assertEquals(query, builder.string().replaceAll("\\r\\n", "\n")); // jackson uses system linefeed - will fail on windows otherwise
}

}

0 comments on commit ebe02ec

Please sign in to comment.