MDL-82787 behat: Correct stop of webdriver on failure

This commit is contained in:
Andrew Nicols 2024-08-21 08:43:04 +08:00
parent 15a54747b9
commit ce89c63b0b
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -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);
}
}
}