Skip to content

Commit

Permalink
fix: Mark snapshot envelopes with snapshot source
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Oct 19, 2023
1 parent ac25135 commit fd11c0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ final class R2dbcReadJournal(system: ExtendedActorSystem, config: Config, cfgPat
row.entityType,
row.slice,
filtered = false,
source = "",
// FIXME move constant to Akka/EnvelopeOrigin
source = "SN",
tags = row.tags)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ class EventsByPersistenceIdStartingFromSnapshotSpec
.runWith(sinkProbe)
.request(21)

result.expectNext().event shouldBe expectedSnapshotEvent(17)
val evt17 = result.expectNext()
evt17.event shouldBe expectedSnapshotEvent(17)
evt17.source should ===("SN")
for (i <- 18 to 20) {
result.expectNext().event shouldBe s"e-$i"
}
Expand Down

0 comments on commit fd11c0c

Please sign in to comment.