From 4e3e59435b7684d2d9066f00c797b650702999af Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 11 Nov 2019 00:17:23 +0600 Subject: [PATCH] add deleting of content --- .../core/exposed/ExposedContentAPICommonTests.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedContentAPICommonTests.kt b/exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedContentAPICommonTests.kt index c6b4a215..df7f364e 100644 --- a/exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedContentAPICommonTests.kt +++ b/exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedContentAPICommonTests.kt @@ -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) + } + ) } }