mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Assert we fetch the correct prev batch
This commit is contained in:
parent
3e02510fa0
commit
507b2622b9
@ -576,7 +576,7 @@ func TestTimelineStopsLoadingWhenMissingPrevious(t *testing.T) {
|
||||
Timeline: sync2.TimelineResponse{
|
||||
Events: []json.RawMessage{msgAfterGap},
|
||||
Limited: true,
|
||||
PrevBatch: "dummyPrevBath",
|
||||
PrevBatch: "dummyPrevBatch",
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -597,5 +597,6 @@ func TestTimelineStopsLoadingWhenMissingPrevious(t *testing.T) {
|
||||
t.Log("The response's timeline should only include the event after the gap.")
|
||||
m.MatchResponse(t, res, m.MatchRoomSubscription(roomID,
|
||||
m.MatchRoomTimeline([]json.RawMessage{msgAfterGap}),
|
||||
m.MatchRoomPrevBatch("dummyPrevBatch"),
|
||||
))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user