MDL-82787 behat: Correct stop of webdriver on failure

This commit is contained in:
Andrew Nicols
2024-08-21 08:46:16 +08:00
parent 869921831d
commit 2af12db84c
@@ -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);
}
}
}