Skip to content

Commit

Permalink
Fix intermittent failure - archetype build (FT timeout) (#4690) (#4934)
Browse files Browse the repository at this point in the history
* Update timeout
  • Loading branch information
tvallin authored Sep 22, 2022
1 parent 6d569f4 commit 320cc0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class FtService implements Service {
this.retry = Retry.builder()
.retryPolicy(Retry.DelayingRetryPolicy.noDelay(3))
.build();
this.timeout = Timeout.create(Duration.ofMillis(100));
this.timeout = Timeout.create(Duration.ofSeconds(5));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package {{package}};

import java.time.Duration;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;

Expand Down Expand Up @@ -172,9 +173,9 @@ class FtServiceTest {
assertThat(response, is("Slept for 50 ms"));
WebClientResponse clientResponse = client.get()
.path("/timeout/105")
.path("/timeout/10000")
.request()
.await(1, TimeUnit.SECONDS);
.await(Duration.ofSeconds(11));
response = clientResponse.content().as(String.class).await(1, TimeUnit.SECONDS);
// error handler specified in Main
Expand Down

0 comments on commit 320cc0e

Please sign in to comment.