akka/akka-core
Voir sur GitHubError with Akka Typed BehaviorTestKit while using TimerScheduler
Open
#24 686 ouverte le 8 mars 2018
1 - triagedhelp wantedt:typed
Métriques du dépôt
- Stars
- (13 277 stars)
- Métriques de merge PR
- (Merge moyen 8j 19h) (10 PRs mergées en 30 j)
Description
Trying to create a BehaviorTestKit using a behavior which spawns a timer within as given below
val behaviorTestKit = BehaviorTestKit(createBehavior)
private def createBehavior(): Behavior[MyMessage] = {
Behaviors
.withTimers[MyMessage](
timerScheduler ⇒
Behaviors
.mutable[MyMessage](
ctx =>
new MyBehavior(
ctx,
timerScheduler,
someInfo
)
)
)
}
gives the following error:
An exception or error caused a run to abort: no scheduler
java.lang.UnsupportedOperationException: no scheduler
It will be helpful if some stub implementation of scheduler could be supported like in case of contexts.