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

question/format/gift/tests/behat/import_export.feature fails randomly

XMLWordPrintable

    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • Hide
      1. Force the id autoincrement sequence in the mdl_qusetion table to start at 1 and run the qformat gift behat tests.
      2. Force the id autoincrement sequence in the mdl_qusetion table to start at 10000000 and run the qformat gift behat tests.
      Show
      Force the id autoincrement sequence in the mdl_qusetion table to start at 1 and run the qformat gift behat tests. Force the id autoincrement sequence in the mdl_qusetion table to start at 10000000 and run the qformat gift behat tests.

      As identified in MDL-47497, the gift download test can fail randomly due to randomised id numbers:

      01. Downloaded data was 1579 bytes, expecting 1624
          In step `And following "click here" should download "1624" bytes'. # behat_general::following_should_download_bytes()
          From scenario `import some GIFT questions'.                        # /var/lib/jenkins/moodle/behat_whole_suite_m/question/format/gift/tests/behat/import_export.feature:21
          Of feature `Test importing questions from GIFT format.'.           # /var/lib/jenkins/moodle/behat_whole_suite_m/question/format/gift/tests/behat/import_export.feature
      

      We need to fix that.

            timhunt Tim Hunt
            poltawski Dan Poltawski
            Nobody Nobody
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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