mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-82787 behat: Correct stop of webdriver on failure
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user