close the database after completing the test run
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user