summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-15 23:05:01 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-15 23:05:01 +0200
commitb2c06354e8d13cc62be27bb029cafb552ce4d063 (patch)
tree88e7794f76f6b2edab8b69ffcbb12223c5239f76
parentbf657883d29c132159994ed5e8eb66b07f7473e5 (diff)
downloadnextcloud-server-b2c06354e8d13cc62be27bb029cafb552ce4d063.tar.gz
nextcloud-server-b2c06354e8d13cc62be27bb029cafb552ce4d063.zip
Reenable proxies if a test failed to restore it
-rw-r--r--tests/testcleanuplistener.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testcleanuplistener.php b/tests/testcleanuplistener.php
index 7065f0337b9..8a9e9e6efbf 100644
--- a/tests/testcleanuplistener.php
+++ b/tests/testcleanuplistener.php
@@ -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;
}
}