diff --git a/akka-persistence-typed/src/test/scala/docs/akka/persistence/typed/BasicPersistentBehaviorCompileOnly.scala b/akka-persistence-typed/src/test/scala/docs/akka/persistence/typed/BasicPersistentBehaviorCompileOnly.scala index 910c00693c..d9a282f349 100644 --- a/akka-persistence-typed/src/test/scala/docs/akka/persistence/typed/BasicPersistentBehaviorCompileOnly.scala +++ b/akka-persistence-typed/src/test/scala/docs/akka/persistence/typed/BasicPersistentBehaviorCompileOnly.scala @@ -200,9 +200,7 @@ object BasicPersistentBehaviorCompileOnly { emptyState = State(), commandHandler = CommandHandler.command { cmd => context.log.info("Got command {}", cmd) - Effect.persist(cmd).thenRun { state => - context.log.info("event persisted, new state {}", state) - } + Effect.none }, eventHandler = { case (state, _) => state