diff --git a/tests/lib/db/mdb2schemamanager.php b/tests/lib/db/mdb2schemamanager.php
index 3e6abab70b4c5a9609b97c8ba4a462575eed7717..e20f4c421b860d1fa58dc1d3d51d4dca5dfd033d 100644
--- a/tests/lib/db/mdb2schemamanager.php
+++ b/tests/lib/db/mdb2schemamanager.php
@@ -17,10 +17,9 @@ class MDB2SchemaManager extends \Test\TestCase {
 	protected function tearDown() {
 		// do not drop the table for Oracle as it will create a bogus transaction
 		// that will break the following test suites requiring transactions
-		if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') {
-			return;
+		if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') !== 'oci') {
+			\OC_DB::dropTable('table');
 		}
-		\OC_DB::dropTable('table');
 
 		parent::tearDown();
 	}