This commit is contained in:
Kegan Dougal 2020-05-15 15:59:50 +01:00
parent cc4cfe6377
commit e4f5a1716f

View file

@ -444,6 +444,8 @@ func TestGetEventsInTopologicalRangeMultiRoom(t *testing.T) {
// head towards the beginning of time
to := types.NewTopologyToken(0, 0)
// Query using room B as room A was inserted first and hence A will have lower stream positions but identical depths,
// allowing this bug to surface.
paginatedEvents, err := db.GetEventsInTopologicalRange(ctx, &from, &to, roomB, 5, true)
if err != nil {
t.Fatalf("GetEventsInRange returned an error: %s", err)