From 089113e352ecd49216602bb1a02fbfada6a40788 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Tue, 7 Apr 2020 16:49:56 +0200 Subject: Fixes tests --- .../src/test/kotlin/renderers/html/PlatformDependentHintTest.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt') diff --git a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt index cf1ac0a9..3e603955 100644 --- a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt @@ -1,5 +1,6 @@ package renderers.html +import kotlinx.coroutines.runBlocking import org.jetbrains.dokka.Platform import org.jetbrains.dokka.base.renderers.html.HtmlRenderer import org.jetbrains.dokka.pages.PlatformData @@ -99,7 +100,12 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } } - HtmlRenderer(context).render(page) + runBlocking { + val scope = this + with(HtmlRenderer(context)) { + scope.render(page) + } + } println(renderedContent) renderedContent.match(Div(Div("ab"))) } -- cgit