Skip to content

Commit

Permalink
Merge pull request #2690 from batmat/fix-windows-build
Browse files Browse the repository at this point in the history
[JENKINS-40290] Fix test failing on Windows because of line feed assumption
  • Loading branch information
daniel-beck committed Jan 7, 2017
2 parents 6f98376 + fceabf0 commit 5483ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/test/java/hudson/model/RunTest.java
Expand Up @@ -189,7 +189,8 @@ public void getLogReturnsAnRightOrder() throws Exception {
for (int i = 1; i < 10; i++) {
assertEquals("dummy" + (10+i), logLines.get(i));
}
assertEquals("[...truncated 68 B...]", logLines.get(0));
int truncatedCount = 10* ("dummyN".length() + System.getProperty("line.separator").length()) - 2;
assertEquals("[...truncated "+truncatedCount+" B...]", logLines.get(0));
}

@Test
Expand Down

0 comments on commit 5483ee1

Please sign in to comment.