diff --git a/core/database/src/test/kotlin/app/pachli/core/database/dao/TimelineDaoTest.kt b/core/database/src/test/kotlin/app/pachli/core/database/dao/TimelineDaoTest.kt index 7cca8ad93..becbac32b 100644 --- a/core/database/src/test/kotlin/app/pachli/core/database/dao/TimelineDaoTest.kt +++ b/core/database/src/test/kotlin/app/pachli/core/database/dao/TimelineDaoTest.kt @@ -28,6 +28,7 @@ import dagger.hilt.android.testing.HiltAndroidRule import dagger.hilt.android.testing.HiltAndroidTest import javax.inject.Inject import kotlinx.coroutines.runBlocking +import org.junit.After import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Rule @@ -51,6 +52,11 @@ class TimelineDaoTest { hilt.inject() } + @After + fun tearDown() { + db.close() + } + @Test fun insertGetStatus() = runBlocking { val setOne = makeStatus(statusId = 3)