]> source.dussan.org Git - nextcloud-server.git/commitdiff
Reenable proxies if a test failed to restore it
authorVincent Petry <pvince81@owncloud.com>
Tue, 15 Jul 2014 21:05:01 +0000 (23:05 +0200)
committerVincent Petry <pvince81@owncloud.com>
Tue, 15 Jul 2014 21:05:01 +0000 (23:05 +0200)
tests/testcleanuplistener.php

index 7065f0337b968b67161a16666ae37c087874ac37..8a9e9e6efbfbd641b3590e102bdb217ee2bb0583 100644 (file)
@@ -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;
        }
 }