Skip to content

Commit

Permalink
Widen timePasses delay for now
Browse files Browse the repository at this point in the history
#24243 (comment) for some
discussion on what to do instead
  • Loading branch information
raboof committed Jan 23, 2018
1 parent c4222e4 commit b261dd9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ class ExplicitlyTriggeredScheduler(config: Config, log: LoggingAdapter, tf: Thre
* this method.
*/
def timePasses(amount: FiniteDuration) = {
// Give dispatchers time to clear :(
Thread.sleep(10)
// Give dispatchers time to clear :(. See
// https://github.com/akka/akka/pull/24243#discussion_r160985493
// for some discussion on how to deal with this properly.
Thread.sleep(100)

val newTime = currentTime.get + amount.toMillis
if (log.isDebugEnabled)
Expand Down

0 comments on commit b261dd9

Please sign in to comment.