Skip to content

Commit

Permalink
test: CommitLogActor stop itself when its shard id is defined as disa…
Browse files Browse the repository at this point in the history
…bled
  • Loading branch information
nyamada-tis committed Oct 19, 2022
1 parent 5f8f982 commit 44e7a8a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ object CommitLogStoreActorSpec {
| snapshot-store.plugin = ${PersistenceTestKitSnapshotPlugin.PluginId}
| snapshot-every = $snapshotEvery
|}
|lerna.akka.entityreplication.raft.disabled-shards = ["disabled-shard-id"]
|""".stripMargin)

def config: Config = {
Expand Down Expand Up @@ -568,6 +569,11 @@ final class CommitLogStoreActorSpec
snapshotTestKit.expectNothingPersisted(persistenceId)
}

"stop itself when its shard id is defined as disabled" in {
val (commitLogStoreActor, _, _) = spawnCommitLogStoreActor(name = Some("disabled-shard-id"))
watch(commitLogStoreActor)
expectTerminated(commitLogStoreActor)
}
}

}

0 comments on commit 44e7a8a

Please sign in to comment.