daml/libs-scala
Samir Talwar c8b10091db
participant-integration-api: Never use a delay of zero. (#7175)
* participant-integration-api: Never use a delay of zero.

If `akka.pattern.after` is passed a delay of zero, it will execute the
body synchronously, potentially leading to a stack overflow error.

This error was observed in tests.

CHANGELOG_BEGIN
CHANGELOG_END

* timer-utils: Add tests for Delayed.Future.

* timer-utils: Add tests for RetryStrategy.

* timer-utils: Remove duplication in RetryStrategy tests.

* timer-utils: Allow for more wiggle room in the RetryStrategy tests.

* timer-utils: Fail after retrying the correct number of times.

* timer-utils: Ensure we don't overflow the stack in RetryStrategy.

* timer-utils: Reject a negative number of retry attempts.
2020-08-19 10:43:31 +00:00
..
auth-utils Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
build-info Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
contextualized-logging Properly use LoggingContext in Participant Server (#6924) 2020-07-31 12:40:13 +00:00
direct-execution-context Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
grpc-utils Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
ports fix flaky 'restart triggers after shutdown' test (#6926) 2020-08-04 08:15:08 -04:00
postgresql-testing triggers + ports: Lock free ports before binding. (#6911) 2020-07-29 14:29:55 +00:00
resources Use Future.unit instead of Future.successful(()). (#7080) 2020-08-11 09:18:50 +00:00
resources-akka Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
scala-utils Introduce //libs-scala/scala-utils (#6935) 2020-07-30 13:51:07 -04:00
scalatest-utils set scalac -Xsource:2.13 -Ypartial-unification globally (#6469) 2020-06-24 16:51:24 -04:00
timer-utils participant-integration-api: Never use a delay of zero. (#7175) 2020-08-19 10:43:31 +00:00