Skip to content

Commit

Permalink
Removed heardcoded 10 second timeout for an activity under test (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfateev authored Dec 19, 2023
1 parent 7ee8f96 commit 440965b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 440965b

Please sign in to comment.