Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24905 Unit tests fail
  3. MDL-24911

Various unit tests fail, possibly due to previous test not resetting prefix

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      When running all unit tests, various ones fail with a message like the following (this is the first):

      Skip: lib/simpletest/testblocklib_blockmanager.php / ?
      Unit test "moodle_block_manager_test_saving_loading" of type UnitTestCaseUsingDatabase skipped. Must define different, non-conflicting $CFG->unittestprefix to be runnable.

      This may indicate that a previous test did not correctly reset the database prefix.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: