Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-57223

As a developer I would like DLFileEntryFinderTest to not fail randomly because postgresql orders its result set randomly

    Details

    • Story Points:
      2

      Description

      DLFileEntryFinderTest adds two file entries to database with the same image Id, and one test queries the database according to that image id, and takes the first results despite their being two. In mysql, the results are returned in a consistent order, contrary to sql spec. In postgresql, this order is variable, causing the test to fail when the first result is the file entry that it does not expect.

      The solution is to modify the expected value in the tests to accept both possible results, as either are valid results.

        Attachments

          Activity

            People

            Assignee:
            shitian.zhang Shitian "Shelton" Zhang (Inactive)
            Reporter:
            william.newbury William Newbury
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 20 weeks ago

                Packages

                Version Package
                7.0.0 M7