From b2c06354e8d13cc62be27bb029cafb552ce4d063 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 15 Jul 2014 23:05:01 +0200 Subject: [PATCH] Reenable proxies if a test failed to restore it --- tests/testcleanuplistener.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testcleanuplistener.php b/tests/testcleanuplistener.php index 7065f0337b..8a9e9e6efb 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; } }