This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git
The following commit(s) were added to refs/heads/master by this push:
new 37cb415 Try to fix the test failure in master
37cb415 is described below
commit 37cb41595e50129015edb5035aeb2aecb79e939e
Author: Willem Jiang <[email protected]>
AuthorDate: Mon Nov 25 08:07:24 2019 +0800
Try to fix the test failure in master
---
.../java/org/apache/servicecomb/pack/integration/tests/PackIT.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/pack/integration/tests/PackIT.java
b/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/pack/integration/tests/PackIT.java
index 930aed1..82048e5 100644
---
a/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/pack/integration/tests/PackIT.java
+++
b/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/pack/integration/tests/PackIT.java
@@ -137,7 +137,7 @@ public class PackIT {
assertThat(compensatedMessages.isEmpty(), is(true));
}
- @Test(timeout = 5000)
+ @Test(timeout = 10000)
public void compensatesFailedGlobalTransaction() throws Exception {
ResponseEntity<String> entity =
restTemplate.getForEntity("/greet?name={name}",
String.class,
@@ -145,7 +145,7 @@ public class PackIT {
assertThat(entity.getStatusCode(), is(INTERNAL_SERVER_ERROR));
- await().atMost(2, SECONDS).until(() -> eventRepo.count() == 7);
+ await().atMost(4, SECONDS).until(() -> eventRepo.count() == 7);
List<String> distinctGlobalTxIds = eventRepo.findDistinctGlobalTxId();
assertThat(distinctGlobalTxIds.size(), greaterThanOrEqualTo(1));