close the database after completing the test run

This commit is contained in:
Hans-Christoph Steiner 2018-08-08 00:00:20 +02:00
parent 2cf2fe5341
commit d64a55e013

@ -228,6 +228,9 @@ public class DBHelper extends SQLiteOpenHelper {
* Only used for testing. Not quite sure how to mock a singleton variable like this.
*/
public static void clearDbHelperSingleton() {
if (instance != null) {
instance.close();
}
instance = null;
}