Skip to content

Commit

Permalink
MDL-67339 behat: Enhance Behat exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
Beedell committed Dec 2, 2019
1 parent 6d6b14e commit 0de7190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/behat/behat_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,8 @@ public static function wait_for_pending_js_in_session(Session $session) {
// 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.');
}

/**
Expand Down

0 comments on commit 0de7190

Please sign in to comment.