mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
comment
This commit is contained in:
parent
cc4cfe6377
commit
e4f5a1716f
|
|
@ -444,6 +444,8 @@ func TestGetEventsInTopologicalRangeMultiRoom(t *testing.T) {
|
||||||
// head towards the beginning of time
|
// head towards the beginning of time
|
||||||
to := types.NewTopologyToken(0, 0)
|
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)
|
paginatedEvents, err := db.GetEventsInTopologicalRange(ctx, &from, &to, roomB, 5, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("GetEventsInRange returned an error: %s", err)
|
t.Fatalf("GetEventsInRange returned an error: %s", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue