mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 15:53:36 -04:00
Reenable proxies if a test failed to restore it
This commit is contained in:
parent
bf657883d2
commit
b2c06354e8
1 changed files with 2 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ class TestCleanupListener implements PHPUnit_Framework_TestListener {
|
|||
private function cleanProxies() {
|
||||
$proxies = OC_FileProxy::getProxies();
|
||||
OC_FileProxy::clearProxies();
|
||||
// reenable in case some test failed to reenable them
|
||||
OC_FileProxy::$enabled = true;
|
||||
return count($proxies) > 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue