Problem/Motivation
There is a test failure in Aggregator update path test on PostgreSQL:
testAggregatorUpdate
fail: [Other] Line 44 of modules/simpletest/tests/upgrade/update.aggregator.test:
Feed data was preserved during the update.
The issue seems to be that the db_select()
does not use ORDER BY, so that the order of the returned items could be different in each of the two runs of the query->execute()
:
$pre_update_data = $query->execute()->fetchAll();
$this->assertTrue($this->performUpgrade(), 'The update was completed successfully.');
$post_update_data = $query->execute()->fetchAll();
Steps to reproduce
Run Aggregator update path test on PostgreSQL.