Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #72 from entagen/bakke/unknown_host
Browse files Browse the repository at this point in the history
Fix the broken test caused by an invalid hostname that's no longer invalid
  • Loading branch information
ebakke committed Sep 23, 2014
2 parents 37fa7be + 62cb98a commit 4052a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/groovy/com/entagen/jenkins/JenkinsApiTests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import net.sf.json.JSONObject
class JenkinsApiTests extends GroovyTestCase {

@Test public void testInvalidHostThrowsConnectionException() {
JenkinsApi api = new JenkinsApi(jenkinsServerUrl: "http://invalid.foo:9090/jenkins")
JenkinsApi api = new JenkinsApi(jenkinsServerUrl: "http://some-invalid-hostname:9090/jenkins")
assert shouldFail(UnknownHostException) {
api.getJobNames("myproj")
}.contains("invalid.foo")
}.contains("some-invalid-hostname")
}

@Test public void testCantConnectToEndpointThrowsException() {
Expand Down

0 comments on commit 4052a73

Please sign in to comment.