mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Merge pull request #9654 from owncloud/enctest-fileproxydisabledfix
Reenable proxies if a test failed to restore it
This commit is contained in:
commit
248e79c465
@ -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 New Issue
Block a user