0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-08-07 04:34:49 +02:00
dendrite/syncapi/storage/tables
kegsay 6d25bd6ca5
syncapi: add more tests; fix more bugs (#2338)
* syncapi: add more tests; fix more bugs

bugfixes:
 - The postgres impl of TopologyTable.SelectEventIDsInRange did not use the provided txn
 - The postgres impl of EventsTable.SelectEvents did not preserve the ordering of the input event IDs in the output events slice
 - The sqlite impl of EventsTable.SelectEvents did not use a bulk `IN ($1)` query.

Added tests:
 - `TestGetEventsInRangeWithTopologyToken`
 - `TestOutputRoomEventsTable`
 - `TestTopologyTable`

* -p 1 for now
2022-04-08 17:53:24 +01:00
..
interface.go syncapi: add more tests; fix more bugs (#2338) 2022-04-08 17:53:24 +01:00
output_room_events_test.go syncapi: add more tests; fix more bugs (#2338) 2022-04-08 17:53:24 +01:00
topology_test.go syncapi: add more tests; fix more bugs (#2338) 2022-04-08 17:53:24 +01:00