Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298914

[D7] AggregatorUpdatePathTestCase::testAggregatorUpdate - inconsistent array order causing test to fail on PostgreSQL

$
0
0

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.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 298914

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>