diff --git a/tests/lib/repair/repairlegacystorage.php b/tests/lib/repair/repairlegacystorage.php
index 24f2dbe13c0c6551d531781d0aacd597a6011c3c..6d14a045c0cdadadab012605084b17997af15a8f 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'));
 	}
 
 	/**