Skip to content

Commit

Permalink
MDL-58948 behat: Fix spin method when callback throws exception
Browse files Browse the repository at this point in the history
Was preventing the sleep statements from running.  This caused
steps to fail too early when it was just waiting for something
to change in the browser.
  • Loading branch information
polothy committed Jun 28, 2017
1 parent 7cde2bb commit f46a2dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/behat/behat_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ protected function spin($lambda, $args = false, $timeout = false, $exception = f
if (!$exception) {
$exception = $e;
}
// We wait until no exception is thrown or timeout expires.
continue;
}

if ($this->running_javascript()) {
Expand Down

0 comments on commit f46a2dd

Please sign in to comment.