Maintenance: Frozen time makes History entry order unpredictable in MySQL environment tests.

This commit is contained in:
Rolf Schmidt 2021-02-17 17:19:01 +01:00 committed by Thorsten Eckel
parent bcd805134d
commit c11c0e7513

View file

@ -163,7 +163,7 @@ returns
) )
end end
histories = histories.order(:created_at) histories = histories.order(:created_at, :id)
list = histories.map(&:attributes).each do |data| list = histories.map(&:attributes).each do |data|
data['object'] = History::Object.lookup(id: data.delete('history_object_id'))&.name data['object'] = History::Object.lookup(id: data.delete('history_object_id'))&.name