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

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

    XMLWordPrintable

Details

    • 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.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              poltawski Dan Poltawski
              Nobody Nobody
              Dan Poltawski Dan Poltawski
              Frédéric Massart Frédéric Massart
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Nov/14