add deleting of content

This commit is contained in:
InsanusMokrassar 2019-11-11 00:17:23 +06:00
parent 9a5fc2d89a
commit 4e3e59435b

View File

@ -13,7 +13,7 @@ class ExposedContentAPICommonTests {
@Test @Test
fun `Test that it is possible to use several different databases at one time`() { fun `Test that it is possible to use several different databases at one time`() {
val numberOfDatabases = 2 val numberOfDatabases = 8
val databaseFiles = (0 until numberOfDatabases).map { val databaseFiles = (0 until numberOfDatabases).map {
"$tempFolder/ExposedContentAPICommonTestsDB$it.db" "$tempFolder/ExposedContentAPICommonTestsDB$it.db"
@ -40,6 +40,11 @@ class ExposedContentAPICommonTests {
api.getContentById(content.id) == (if (i != j) null else content) api.getContentById(content.id) == (if (i != j) null else content)
} }
) )
assert(
runBlocking {
api.deleteContent(content.id) == (i == j)
}
)
} }
} }