From 32c9139ac22788d9020ff964de5cb8f014a73702 Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Fri, 27 Feb 2015 13:16:38 +0100
Subject: [PATCH] Detect that the done flag was not set after repair fail

---
 tests/lib/repair/repairlegacystorage.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/lib/repair/repairlegacystorage.php b/tests/lib/repair/repairlegacystorage.php
index 24f2dbe13c..6d14a045c0 100644
--- a/tests/lib/repair/repairlegacystorage.php
+++ b/tests/lib/repair/repairlegacystorage.php
@@ -198,8 +198,8 @@ class TestRepairLegacyStorages extends \Test\TestCase {
 		$this->assertEquals($legacyStorageNumId, $this->getStorageId($this->legacyStorageId));
 		$this->assertEquals($newStorageNumId, $this->getStorageId($this->newStorageId));
 
-		// set the done flag
-		$this->assertEquals('yes', $this->config->getAppValue('core', 'repairlegacystoragesdone'));
+		// do not set the done flag
+		$this->assertNotEquals('yes', $this->config->getAppValue('core', 'repairlegacystoragesdone'));
 	}
 
 	/**
-- 
GitLab