From 42bb84db9f4d90b4c9b713d181fbf97b925a3ef9 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 29 Jan 2021 12:45:00 +0800 Subject: [PATCH] MDL-66979 behat: Mark some tests as being slow Uses of the httpsreplace and customlang tools are known to be extremely slow. In our CI infrastructure on slwoer DBs, the customlang tool can take over 90 seconds to load the page, whilst the httpsreplace tool can take up to about 60 seconds. These changes set appropriate timeout factors to increase the timeout accordingly. --- admin/tool/httpsreplace/tests/behat/httpsreplace.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/tool/httpsreplace/tests/behat/httpsreplace.feature b/admin/tool/httpsreplace/tests/behat/httpsreplace.feature index 76e77e0f8f7..f8d99f95059 100644 --- a/admin/tool/httpsreplace/tests/behat/httpsreplace.feature +++ b/admin/tool/httpsreplace/tests/behat/httpsreplace.feature @@ -5,7 +5,10 @@ Feature: View the httpsreplace report I need to be able to automatically replace http links Background: Create some http links - Given I am on site homepage + # This is a slow running feature and on slow databases can take over 30 seconds to complete. + Given I mark this test as slow setting a timeout factor of 2 + + And I am on site homepage And the following "courses" exist: | fullname | shortname | category | summary | | Course 1 | C1 | 0 | |