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

core_customfield unit tests cause unexpected database modification

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.3, 3.8, 3.9
    • Fix Version/s: None
    • Component/s: Unit tests

      Description

      When running unit tests in parallel these failures might be caught:
       

      There was 1 error:
       
      1) approved_contextlist_test::test_default_values_set
      Warning: unexpected database modification, resetting DB state
       
      /var/www/site/lib/phpunit/classes/util.php:293
      /var/www/site/lib/phpunit/classes/advanced_testcase.php:503
      /var/www/site/lib/phpunit/classes/advanced_testcase.php:132
       
      To re-run:
      vendor/bin/phpunit "approved_contextlist_test" privacy/tests/approved_contextlist_test.php
      

       
       Command to replicate:

      ./vendor/bin/phpunit --stop-on-failure --testsuite core_customfield_testsuite,core_privacy_testsuite

        Attachments

          Activity

            People

            • Assignee:
              mikhailgolenkov Mikhail Golenkov
              Reporter:
              mikhailgolenkov Mikhail Golenkov
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: