tests: ensure all database usages are properly closed

Leaving lots of DB connections open seems to make OpenJDK crash a lot,
giving false fails for the CI tests.
This commit is contained in:
Hans-Christoph Steiner 2018-08-08 09:36:29 +02:00
parent 21b10f65c7
commit e215c26517

View File

@ -38,6 +38,7 @@ public class DatabaseMigration {
Preferences.setupForTests(context);
SQLiteOpenHelper opener = new MigrationRunningOpenHelper(context);
opener.getReadableDatabase();
opener.close();
}
/**