rocketraman opened a new issue, #54:
URL: https://github.com/apache/logging-log4j-kotlin/issues/54

   The coroutine context is not cleared properly. This test fails:
   
   ```kotlin
     @Test
     fun `Context is restored after a context block is complete`() = 
runBlocking {
       assertTrue(ContextMap.empty)
       assertTrue(ContextStack.empty)
       withContext(CoroutineThreadContext(ThreadContextData(mapOf("myKey" to 
"myValue"), listOf("test")))) {
         assertEquals("myValue", ContextMap["myKey"])
         assertEquals("test", ContextStack.peek())
       }
       assertTrue(ContextMap.empty)
       assertTrue(ContextStack.empty)
     }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to