Skip to content

Commit 886d7e5

Browse files
committed
enable test with guaranteed bad host name
1 parent 02984a5 commit 886d7e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/io/prometheus/wls/rest/WebClientImplTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.meterware.pseudoserver.PseudoServlet;
1616
import com.meterware.pseudoserver.WebResource;
1717
import org.junit.Before;
18-
import org.junit.Ignore;
1918
import org.junit.Test;
2019

2120
import static io.prometheus.wls.rest.ServletConstants.AUTHENTICATION_HEADER;
@@ -34,7 +33,7 @@ public class WebClientImplTest extends HttpUserAgentTest {
3433
private static final char QUOTE = '"';
3534

3635
/** A URL with a host guaranteed not to exist. */
37-
private static final String UNDEFINED_HOST_URL = "http://seriously-this-should-not-exist/";
36+
private static final String UNDEFINED_HOST_URL = "http://undefined.invalid";
3837

3938
/** A URL on a known host with a port on which no server is listening. */
4039
private static final String UNDEFINED_PORT_URL = "http://localhost:59236";
@@ -52,7 +51,6 @@ public void setUp() {
5251
sentHeaders.clear();
5352
}
5453

55-
@Ignore("The client seems to find something on some platforms??")
5654
@Test(expected = WebClientException.class)
5755
public void whenUnableToReachHost_throwException() throws Exception {
5856
factory.createClient().withUrl(UNDEFINED_HOST_URL).doGetRequest();

0 commit comments

Comments
 (0)