Skip to content

Commit 0910f34

Browse files
committed
🚨test: Verify the SnapshotStore receives single SaveSnapshot
Only one snapshot(entityId: test-entity) is copied in this test case
1 parent bf3e58c commit 0910f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scala/lerna/akka/entityreplication/raft/RaftActorSnapshotSynchronizationSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,10 @@ class RaftActorSnapshotSynchronizationSpec
519519
),
520520
)
521521
LoggingTestKit.info("Snapshot synchronization completed").expect {
522-
snapshotStore.receiveWhile(messages = 2) {
522+
snapshotStore.receiveWhile(messages = 1) {
523523
case msg: SaveSnapshot =>
524524
msg.replyTo ! SaveSnapshotSuccess(msg.snapshot.metadata)
525-
} should have length 2
525+
} should have length 1
526526
}
527527
inside(region.expectMsgType[ReplicationRegion.DeliverTo]) {
528528
case ReplicationRegion.DeliverTo(`leaderMemberIndex`, reply: InstallSnapshotSucceeded) =>

0 commit comments

Comments
 (0)