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

core_customfield unit tests cause unexpected database modification

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • 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

          Issue Links

            Activity

              People

              Assignee:
              mikhailgolenkov Mikhail Golenkov
              Reporter:
              mikhailgolenkov Mikhail Golenkov
              Peer reviewer:
              Simey Lameze
              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:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m