Permalink
Browse files

fixed condition evaluation in wait

  • Loading branch information...
1 parent 76687f7 commit 2effc36d71836541dae436541b92b5e4b9cce106 @everzet everzet committed Dec 21, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Behat/SahiClient/Client.php
@@ -170,7 +170,9 @@ public function wait($time, $condition)
// don't throw exceptions
try {
$conditionResult = $this->con->evaluateJavascript($condition);
- } catch (\Exception $e) {}
+ } catch (\Exception $e) {
+ $conditionResult = false;
+ }
}
}

0 comments on commit 2effc36

Please sign in to comment.