Skip to content

Commit

Permalink
Make the unit test cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Aug 30, 2021
1 parent 8062dd6 commit 2bf7244
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void shouldFailWithWrongJenkinsfile() throws Throwable {

int result = new JFRTestUtil().run(jenkinsfile);
assertThat("JFR should fail when there is no Jenkinsfile", result, not(equalTo(0)));
assertThat(systemOut.getLog(), containsString("No such file or directory"));
assertThat(systemOut.getLog(), containsString("FileNotFoundException"));
}

// TODO: uncomment once JFR can do something about timeouts internally
Expand Down

0 comments on commit 2bf7244

Please sign in to comment.