add deleting of content
This commit is contained in:
parent
9a5fc2d89a
commit
4e3e59435b
@ -13,7 +13,7 @@ class ExposedContentAPICommonTests {
|
||||
|
||||
@Test
|
||||
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 {
|
||||
"$tempFolder/ExposedContentAPICommonTestsDB$it.db"
|
||||
@ -40,6 +40,11 @@ class ExposedContentAPICommonTests {
|
||||
api.getContentById(content.id) == (if (i != j) null else content)
|
||||
}
|
||||
)
|
||||
assert(
|
||||
runBlocking {
|
||||
api.deleteContent(content.id) == (i == j)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user