Skip to content
Permalink
Browse files
Merge pull request #2690 from batmat/fix-windows-build
[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 5483ee13833bb44ff611e8da3a8c74379ba26e11
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/test/java/hudson/model/RunTest.java
@@ -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

0 comments on commit 5483ee1

Please sign in to comment.