Skip to content

Commit d0cc4b4

Browse files
committed
Increase timeout tolerance for GetActivityResultOverLongPollWaitTest.
1 parent a3a7e9c commit d0cc4b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

temporal-sdk/src/test/java/io/temporal/client/functional/GetActivityResultOverLongPollWaitTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static class SlowActivityImpl implements SlowActivity {
3737
@Override
3838
public void run() {
3939
try {
40-
Thread.sleep(Duration.ofSeconds(3 * LONG_POLL_TIMEOUT_SECONDS / 2).toMillis());
40+
Thread.sleep(Duration.ofSeconds(2 * LONG_POLL_TIMEOUT_SECONDS).toMillis());
4141
} catch (InterruptedException e) {
4242
Thread.currentThread().interrupt();
4343
}
@@ -82,13 +82,13 @@ private StartActivityOptions slowOpts() {
8282
.build();
8383
}
8484

85-
@Test(timeout = 2 * LONG_POLL_TIMEOUT_SECONDS * 1000)
85+
@Test(timeout = 3 * LONG_POLL_TIMEOUT_SECONDS * 1000)
8686
public void testGetResult() {
8787
assumeTrue(SDKTestWorkflowRule.useExternalService);
8888
activityClient.execute(SlowActivity.class, SlowActivity::run, slowOpts());
8989
}
9090

91-
@Test(timeout = 2 * LONG_POLL_TIMEOUT_SECONDS * 1000)
91+
@Test(timeout = 3 * LONG_POLL_TIMEOUT_SECONDS * 1000)
9292
public void testGetResultAsync() throws ExecutionException, InterruptedException {
9393
assumeTrue(SDKTestWorkflowRule.useExternalService);
9494
activityClient.executeAsync(SlowActivity.class, SlowActivity::run, slowOpts()).get();

0 commit comments

Comments
 (0)