1 /*
2  *  Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 import org.junit.*
5 import kotlinx.coroutines.*
6 import kotlinx.coroutines.debug.*
7 import org.junit.Test
8 import java.io.*
9 
10 class DebugAgentTest {
11 
12     @Test
<lambda>null13     fun testAgentDumpsCoroutines() = runBlocking {
14         val baos = ByteArrayOutputStream()
15         DebugProbes.dumpCoroutines(PrintStream(baos))
16         // if the agent works, then dumps should contain something,
17         // at least the fact that this test is running.
18         Assert.assertTrue(baos.toString().contains("testAgentDumpsCoroutines"))
19     }
20 
21 }
22