diff --git a/zipline/src/jniTest/kotlin/app/cash/zipline/ZiplineStackSizeTest.kt b/zipline/src/jniTest/kotlin/app/cash/zipline/ZiplineStackSizeTest.kt index 7ec9ec915e..00e8e6b27b 100644 --- a/zipline/src/jniTest/kotlin/app/cash/zipline/ZiplineStackSizeTest.kt +++ b/zipline/src/jniTest/kotlin/app/cash/zipline/ZiplineStackSizeTest.kt @@ -36,10 +36,11 @@ class ZiplineStackSizeTest { Thread(null, runnable, "Treehouse", 8 * 1024 * 1024) } private val dispatcher = executorService.asCoroutineDispatcher() - private val zipline = Zipline.create(dispatcher) + private lateinit var zipline: Zipline @Before fun setUp() = runBlocking(dispatcher) { + zipline = Zipline.create(dispatcher) zipline.loadTestingJs() } @@ -53,7 +54,7 @@ class ZiplineStackSizeTest { runBlocking(dispatcher) { zipline.quickJs.evaluate("testing.app.cash.zipline.testing.prepareRecursingService()") - val recurseCount = 300 + val recurseCount = 500 val service = zipline.take("recursingService") val echoResponse = service.echo(EchoRequest("$recurseCount")) assertThat(echoResponse).isEqualTo(EchoResponse("recursed $recurseCount times!"))