Skip to content

Commit

Permalink
Fix long running test
Browse files Browse the repository at this point in the history
Depending on test exec environment, this test could linger around
for ~8 minutes, b/c pinging test.com will not resolve and run into
seveal timeouts.
  • Loading branch information
Philzen committed May 24, 2024
1 parent 7bc2a66 commit 5a17fdc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ public void generateWIthForwardedHeaders() throws Exception {
.andExpect(status().isOk())
.andExpect(header().string(HttpHeaders.CONTENT_LENGTH, not(0)));
}

@Test
public void generateClientWithInvalidOpenAPIUrl() throws Exception {
String invalidOpenAPIUrl = "https://test.com:1234/invalid_openapi.json";
final String invalidOpenAPIUrl = "https://[::1]/invalid_openapi.json";
mockMvc.perform(post("http://test.com:1234/api/gen/clients/java")
.contentType(MediaType.APPLICATION_JSON)
.content("{\"openAPIUrl\": \"" + invalidOpenAPIUrl + "\"}"))
Expand Down

0 comments on commit 5a17fdc

Please sign in to comment.