Merge pull request #9654 from owncloud/enctest-fileproxydisabledfix

Reenable proxies if a test failed to restore it
remotes/origin/fix-10825
Björn Schießle 2014-07-16 16:55:17 +07:00
commit 248e79c465
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;
}
}