From ae787e50215f285be1514e192edf6206fe2592a0 Mon Sep 17 00:00:00 2001 From: Maxim Fateev Date: Fri, 15 Dec 2023 21:18:15 -0800 Subject: [PATCH] Removed heardcoded 10 second timeout for an activity under test --- .../temporal/testing/TestActivityEnvironmentInternal.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/temporal-testing/src/main/java/io/temporal/testing/TestActivityEnvironmentInternal.java b/temporal-testing/src/main/java/io/temporal/testing/TestActivityEnvironmentInternal.java index a97841389..1760edf5c 100644 --- a/temporal-testing/src/main/java/io/temporal/testing/TestActivityEnvironmentInternal.java +++ b/temporal-testing/src/main/java/io/temporal/testing/TestActivityEnvironmentInternal.java @@ -363,17 +363,13 @@ private Result executeActivity( localActivity)); try { - // 10 seconds is just a "reasonable" wait to not make an infinite waiting - return activityFuture.get(10, TimeUnit.SECONDS); + return activityFuture.get(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new RuntimeException(e); } catch (ExecutionException e) { log.error("Exception during processing of activity task"); throw new RuntimeException(e); - } catch (TimeoutException e) { - log.error("Timeout trying execute activity task {}", activityTask); - throw new RuntimeException(e); } }