MDL-82787 behat: Correct stop of webdriver on failure

This commit is contained in:
Andrew Nicols
2024-08-21 08:46:34 +08:00
parent 15a54747b9
commit ce89c63b0b
@@ -87,7 +87,8 @@ class WebDriver extends UpstreamDriver {
parent::stop();
} catch (DriverException $e) {
error_log($e->getMessage());
$this->webDriver = null;
$rcp = new \ReflectionProperty(parent::class, 'webDriver');
$rcp->setValue($this, null);
}
}
}