Skip to content

Commit 3abb470

Browse files
fix: update url in test with non-routable url to simulate timeout (#2268)
1 parent c7f8b94 commit 3abb470

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/util/RemoteUrlTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private String setupStub() {
146146
@Test
147147
public void testConnectionTimeoutEnforced() throws Exception {
148148
RemoteUrl.ConnectionConfigurator configurator = RemoteUrl.createConnectionConfigurator();
149-
URL url = new URL("https://10.255.255.1"); // non-routable IP to simulate timeout
149+
URL url = new URL("https://httpbin.org:81/delay/60"); // non-routable IP to simulate timeout
150150
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
151151

152152
configurator.process(conn);

0 commit comments

Comments
 (0)