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

Unit tests fail because time zone modified in previous test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.2, 2.8, 2.9
    • Fix Version/s: 2.7.5, 2.8.3
    • Component/s: Unit tests
    • Labels:

      Description

      backup/util/helper/tests/cronhelper_test.php changes time zone while performing its tests but does not put time zone back to previous value.
      This causes subsequent tests to fail that depend on correct time zone.
      Database is Oracle 12.
      Moodle version 2.6.6+
      (Note: current code in git does not correct this.)
      Tests that fail are:
      lib/tests/statslib_test.php
      enrol/imsenterprise/tests/imsenterprise_test.php

      These tests will pass when run individually.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              rbon Ray Bon
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                2/Feb/15