• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines
6 
7 import kotlin.test.*
8 
9 class JobStressTest : TestBase() {
10     @Test
testMemoryReleasenull11     fun testMemoryRelease() {
12         val job = Job()
13         val n = 10_000_000 * stressTestMultiplier
14         var fireCount = 0
15         for (i in 0 until n) job.invokeOnCompletion { fireCount++ }.dispose()
16     }
17 }