Assert we fetch the correct prev batch

This commit is contained in:
David Robertson 2023-09-20 13:56:03 +01:00
parent 3e02510fa0
commit 507b2622b9
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -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"),
))
}