Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32016

Unit tests contain hard coded file hash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Unit tests
    • Labels:
    • Testing Instructions:
      Hide

      Replace the image backup/converter/moodle1/simpletest/files/icon.gif with another file of the same name. Run unit tests (to make them run faster limit to the path backup/converter/)

      Expect:

      • tests still pass

      What happens:

      • tests fails
      Show
      Replace the image backup/converter/moodle1/simpletest/files/icon.gif with another file of the same name. Run unit tests (to make them run faster limit to the path backup/converter/) Expect: tests still pass What happens: tests fails
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      In theory this could break tests in the future, I propose calculating the hash dynamically.

        Attachments

          Activity

            People

            Assignee:
            sry_not4sale Aaron Barnes
            Reporter:
            sry_not4sale Aaron Barnes
            Peer reviewer:
            Aparup Banerjee
            Integrator:
            Sam Hemelryk
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Jun/12