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

Reduce behat polling interval

    XMLWordPrintable

    Details

      Description

      During behat runs, some check tasks are run periodically to check if outstanding tasks are completed. This polling loop has a 1 second sleep, which causes a large amount of time to be wasted sleeping.

      My change reduces the sleep to 10ms, which has no significant CPU usage increase but greatly improves total test execution time (e.g. mod_forum tests 50 => 14 seconds).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tlevi Tony Levi
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: