Skip to content

Commit 44e7a8a

Browse files
committed
test: CommitLogActor stop itself when its shard id is defined as disabled
1 parent 5f8f982 commit 44e7a8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/scala/lerna/akka/entityreplication/raft/eventsourced/CommitLogStoreActorSpec.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ object CommitLogStoreActorSpec {
3030
| snapshot-store.plugin = ${PersistenceTestKitSnapshotPlugin.PluginId}
3131
| snapshot-every = $snapshotEvery
3232
|}
33+
|lerna.akka.entityreplication.raft.disabled-shards = ["disabled-shard-id"]
3334
|""".stripMargin)
3435

3536
def config: Config = {
@@ -568,6 +569,11 @@ final class CommitLogStoreActorSpec
568569
snapshotTestKit.expectNothingPersisted(persistenceId)
569570
}
570571

572+
"stop itself when its shard id is defined as disabled" in {
573+
val (commitLogStoreActor, _, _) = spawnCommitLogStoreActor(name = Some("disabled-shard-id"))
574+
watch(commitLogStoreActor)
575+
expectTerminated(commitLogStoreActor)
576+
}
571577
}
572578

573579
}

0 commit comments

Comments
 (0)