Skip to content

Commit 711d052

Browse files
committed
Don't hardcode size of test file
(checkout on Windows might add CRLF)
1 parent 977b4e9 commit 711d052

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/commonwl/view/cwl/CWLServiceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ public void workflowOverviewOverSingleFileSizeLimitThrowsIOException() throws Ex
197197

198198
// Should throw IOException due to oversized file
199199
thrown.expect(IOException.class);
200-
thrown.expectMessage("File 'hello.cwl' is over singleFileSizeLimit - 672 bytes/0 bytes");
200+
thrown.expectMessage(String.format("File 'hello.cwl' is over singleFileSizeLimit - %s bytes/0 bytes",
201+
helloWorkflow.length()));
201202
cwlService.getWorkflowOverview(helloWorkflow);
202203

203204
}

0 commit comments

Comments
 (0)