Skip to content

Commit

Permalink
add comments to MigrationsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
connyduck committed Nov 29, 2024
1 parent 6e5a871 commit bb090ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class MigrationsTest {

@Test
fun testMigrations() {
/** the db name must match the one in [StorageModule.providesDatabase] */
val db = migrationHelper.createDatabase("tuskyDB", 10)
val moshi = Moshi.Builder().build()

Expand Down Expand Up @@ -66,6 +67,7 @@ class MigrationsTest {

db.close()

// Room will run all migrations and validate the scheme afterwards
val roomDb = StorageModule.providesDatabase(
InstrumentationRegistry.getInstrumentation().context,
Converters(moshi)
Expand Down

0 comments on commit bb090ce

Please sign in to comment.