Skip to content

Commit

Permalink
Fix intermittent failure - archetype build (FT timeout) (#4690)
Browse files Browse the repository at this point in the history
* Update timeout
  • Loading branch information
tvallin authored Aug 18, 2022
1 parent b04e6d6 commit cf4a3bb
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 @@ public 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 cf4a3bb

Please sign in to comment.