Skip to content

Commit

Permalink
Use NoOffset when running query from start (#7069)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasJakobsson authored Jan 22, 2024
1 parent 0cb2881 commit ee77d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Akka.Persistence.TCK/Query/CurrentEventsByTagSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public virtual void ReadJournal_query_CurrentEventsByTag_should_see_all_150_even
}

[Fact]
public void ReadJournal_query_CurrentEventsByTag_should_include_timestamp_in_EventEnvelope()
public virtual void ReadJournal_query_CurrentEventsByTag_should_include_timestamp_in_EventEnvelope()
{
if (ReadJournal is not ICurrentEventsByTagQuery queries)
throw IsTypeException.ForMismatchedType(nameof(ICurrentEventsByTagQuery), ReadJournal?.GetType().Name ?? "null");
Expand All @@ -226,7 +226,7 @@ public void ReadJournal_query_CurrentEventsByTag_should_include_timestamp_in_Eve
a.Tell("a green banana");
ExpectMsg("a green banana-done");

var greenSrc = queries.CurrentEventsByTag("green", offset: Sequence(0L));
var greenSrc = queries.CurrentEventsByTag("green", offset: NoOffset());
var probe = greenSrc.RunWith(this.SinkProbe<EventEnvelope>(), Materializer);
probe.Request(2);
probe.ExpectNext().Timestamp.Should().BeGreaterThan(0);
Expand Down

0 comments on commit ee77d7a

Please sign in to comment.