MDL-46891 behat: Increment counter

This commit is contained in:
Rajesh Taneja
2016-03-14 14:24:36 +08:00
parent 2e2e4caa7e
commit af7cadbb4d
+1 -1
View File
@@ -398,7 +398,7 @@ class behat_hooks extends behat_base {
* @AfterScenario @_switch_window
*/
public function after_scenario_switchwindow(AfterScenarioScope $event) {
for ($count = 0; $count < self::EXTENDED_TIMEOUT; $count) {
for ($count = 0; $count < self::EXTENDED_TIMEOUT; $count++) {
try {
$this->getSession()->restart();
break;