Failures when asserting array elements in json response
mujx opened this issue · comments
I had some failures with sync::can_sync_a_room_with_a_single_message
, here is particular.
The order of the elements in a json array is not guaranteed (I think is alphabetical) so we shouldn't use next
to test the existence of the EventId
s.
The Order of the array is important.
Possible we need to add a order to sql statement. I can lookup the spec later. This array represents the timeline.
I added more events, and it works fine. Still can't figure out what caused the failures.
I am closing this since I can't reproduce. It was probably an one time thing during development.
I think my implementation of sync is incorrect. This need to be test more.