Skip to content

Commit

Permalink
Increase connection timeout in test for slow connections (openrewrite…
Browse files Browse the repository at this point in the history
  • Loading branch information
ErhardSiegl authored Jul 8, 2024
1 parent b4d3f93 commit 64e814d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
@SuppressWarnings({"HttpUrlsUsage"})
class MavenPomDownloaderTest {
private final ExecutionContext ctx = HttpSenderExecutionContextView.view(new InMemoryExecutionContext())
.setHttpSender(new HttpUrlConnectionSender(Duration.ofMillis(150), Duration.ofMillis(150)));
.setHttpSender(new HttpUrlConnectionSender(Duration.ofMillis(250), Duration.ofMillis(250)));

private void mockServer(Integer responseCode, Consumer<MockWebServer> block) {
try (MockWebServer mockRepo = new MockWebServer()) {
Expand Down

0 comments on commit 64e814d

Please sign in to comment.