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:
parent
21b10f65c7
commit
e215c26517
@ -38,6 +38,7 @@ public class DatabaseMigration {
|
|||||||
Preferences.setupForTests(context);
|
Preferences.setupForTests(context);
|
||||||
SQLiteOpenHelper opener = new MigrationRunningOpenHelper(context);
|
SQLiteOpenHelper opener = new MigrationRunningOpenHelper(context);
|
||||||
opener.getReadableDatabase();
|
opener.getReadableDatabase();
|
||||||
|
opener.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user