mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-70734-39' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE
This commit is contained in:
commit
db9934a625
1 changed files with 4 additions and 6 deletions
|
@ -1369,11 +1369,9 @@ EOF;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use `get_real_timeout` to multiply the timeout by the global behat_increasetimeout value, and again by the
|
// The standard curl timeout is 30 seconds.
|
||||||
// factor specified.
|
// Use get_real_timeout and multiply by the timeout factor to get the final timeout.
|
||||||
$this->getSession()->getDriver()->setTimeouts([
|
$timeout = self::get_real_timeout(30) * 1000 * $factor;
|
||||||
// The standard script timeout is 30000 ms. (aka, 30 seconds).
|
$driver->getWebDriver()->getCommandExecutor()->setRequestTimeout($timeout);
|
||||||
'script' => self::get_real_timeout(30) * 1000 * $factor,
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue