The specs are testing Connect::Message.with_context
. This method is used in Connect search. When you click on one of the messages in a set of search results, you can view that message, with context of the conversation (messages written in that conversation immediately before and after the message you selected).
It looks like the specs are breaking on MySql 8.0 because the messages are being returned in a different order than what's expected.
For example, on ./spec/models/connect/message_spec.rb:249
, it expected messages in this order:
id: 1418
id: 1420
id: 1421