Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-72698 behat: Reduce random lesson behat failures on slow envs
In very slow environments viewing the lesson page for a student takes more than 1 second and, because of this, the "Spend at least 1 sec" completion condition is considered done. So, in order to alleviate this problem, that leads to random failures in CIs with slow databases, we have changed the condition to be 3 seconds instead. That seems to do the work in super-slow environments, with 100 executions passing ok (when previously the scenario was failing 33% of times). The only cost is that now the behat run will be 2 seconds slower (there is a wait changed from 2 to 4 seconds), but that's an acceptable price to pay to get the scenarios consistent passing. See the issue for more details.
- Loading branch information