From 54eb7cecbb5ac13a4586eeb7305c985e5a4fc81a Mon Sep 17 00:00:00 2001 From: John Beedell Date: Mon, 25 Nov 2019 16:13:15 +0000 Subject: [PATCH] MDL-67339 behat: Enhance Behat exception message --- lib/behat/behat_base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/behat/behat_base.php b/lib/behat/behat_base.php index 7a23e2d818c..a8aa67da63e 100644 --- a/lib/behat/behat_base.php +++ b/lib/behat/behat_base.php @@ -827,8 +827,8 @@ class behat_base extends Behat\MinkExtension\Context\RawMinkContext { // number of JS pending code and JS completed code will not match and we will reach this point. throw new \Exception('Javascript code and/or AJAX requests are not ready after ' . self::get_extended_timeout() . - ' seconds. There is a Javascript error or the code is extremely slow. ' . - 'If you are using a slow machine, consider setting $CFG->behat_increasetimeout.'); + ' seconds. There is a Javascript error or the code is extremely slow (' . $pending . + '). If you are using a slow machine, consider setting $CFG->behat_increasetimeout.'); } /**