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

Unit tests fail because time zone modified in previous test

XMLWordPrintable

      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.

            rajeshtaneja Rajesh Taneja
            rbon Ray Bon
            Ankit Agarwal Ankit Agarwal
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.