Skip to content

Commit

Permalink
Merge pull request jenkinsci#618 from MarkEWaite/throw-exception-on-t…
Browse files Browse the repository at this point in the history
…est-exit

Throw GitException as expected in GitClientTest
  • Loading branch information
MarkEWaite committed Sep 27, 2020
2 parents d3e1716 + 2248838 commit af2f941
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2569,7 +2569,7 @@ public void testgetRemoteSymbolicReferences_with_non_default_HEAD() throws Excep
@Test(expected = GitException.class)
public void testgetRemoteSymbolicReferences_URI_Syntax() throws Exception {
if (!CLI_GIT_SUPPORTS_SYMREF) {
return;
throw new GitException("Skipping JGit tests in testgetRemoteSymbolicReferences_URI_Syntax");
}
gitClient.getRemoteSymbolicReferences("error: invalid repo URL", Constants.HEAD);
}
Expand Down

0 comments on commit af2f941

Please sign in to comment.