You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial call to fetch_events.from_last will set the spec.start to an event_id from an arbitrary stream published to in the preamble (in this example a before block. A let! block has the same effect).
The subsequent fetch_events.stream(stream_name) then causes an error in InMemoryRepository:153:
since index_of(serialized_records, spec.start) is nil (i.e. nil + 1)
I would propose that if the event specified in spec.start is not present in serialized_records, then it should simply iterate from the beginning of the collection.
The text was updated successfully, but these errors were encountered:
When using the
Publish
matcher in the following manner:...using the
InMemoryRepository
, we get the errorNoMethodError: undefined method '+' for nil:NilClass
.This happens as a result of the call in
Publish
:The initial call to
fetch_events.from_last
will set thespec.start
to anevent_id
from an arbitrary stream published to in the preamble (in this example abefore
block. Alet!
block has the same effect).The subsequent
fetch_events.stream(stream_name)
then causes an error inInMemoryRepository:153
:since
index_of(serialized_records, spec.start)
isnil
(i.e.nil + 1
)I would propose that if the event specified in
spec.start
is not present inserialized_records
, then it should simply iterate from the beginning of the collection.The text was updated successfully, but these errors were encountered: