Skip to content
Snippets Groups Projects
Commit b2c06354 authored by Vincent Petry's avatar Vincent Petry
Browse files

Reenable proxies if a test failed to restore it

parent bf657883
Branches
No related tags found
Loading
......@@ -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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment