calidion
02/15/2025, 6:26 AMevery { webSocketSession.incoming } returns mockk(relaxed = true) {
every { receive() } returns Frame.Text(incomingMessage)
}
error message:
Suspend function 'receive' should be called only from a coroutine or another suspend function
how to resolve this problem?Joffrey
02/15/2025, 9:04 AMcoEvery
, coVerify
, etc. if you use suspend functions.Pim
02/15/2025, 11:59 AMmockk
you can use coEvery
calidion
02/17/2025, 10:17 AM