Skip to content

Commit 83f6d62

Browse files
committed
update test
1 parent 8ede978 commit 83f6d62

File tree

1 file changed

+2
-1
lines changed
  • commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools

1 file changed

+2
-1
lines changed

commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/TimeoutTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public void requestPolicies() {
119119
.withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.POST),
120120
policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(10)))
121121
.withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.GET),
122-
policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(1))))
122+
policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(1)))
123+
.withAllOtherRequests(policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(60))))
123124
.build(projectKey);
124125

125126
Assertions.assertThatExceptionOfType(TimeoutExceededException.class).isThrownBy(() -> {

0 commit comments

Comments
 (0)