Skip to content

Commit

Permalink
Don't use hostnames with domains that Google might buy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bakke committed Sep 23, 2014
1 parent f40cafa commit 62cb98a
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 62cb98a

Please sign in to comment.