John O'Reilly
07/27/2021, 4:49 PMMockEngine in 1.5.1.....we're updating a client here from a 1.4.x version and have isolated issue we're seeing to update from 1.5.0 to 1.5.1.....we have unit tests that are using runBlockingTest and getting IllegalStateException: This job has not completed yet after that update....digging deeper to try and narrow in on what's changed but just in case anyone encountered this before....John O'Reilly
07/27/2021, 4:51 PMJavier
07/27/2021, 4:59 PMJohn O'Reilly
07/27/2021, 5:02 PMJohn O'Reilly
07/27/2021, 5:04 PMJohn O'Reilly
07/28/2021, 9:54 AMAleksei Tirman [JB]
07/28/2021, 10:04 AMJohn O'Reilly
07/28/2021, 10:05 AMrunBlockingTest for unit tests that use MockEngine ?Aleksei Tirman [JB]
07/28/2021, 10:07 AMrunBlockingTest ?John O'Reilly
07/28/2021, 10:25 AMe5l
07/28/2021, 10:48 AMawait method there. Could you provide the whole code snippet to figure it out?John O'Reilly
07/28/2021, 10:51 AMrunBlockingTest and then testing one of our classes that in turn is using another class that uses MockEngine based HttpClient. Do you know of any examples/samples etc that are able to use runBlockingTest that I can maybe compare to?e5l
07/28/2021, 10:52 AMrunBlocking?John O'Reilly
07/28/2021, 10:53 AMAleksei Tirman [JB]
07/28/2021, 10:53 AMJohn O'Reilly
07/28/2021, 11:02 AMTestCoroutineDispatcher() when constructing the class under teste5l
07/28/2021, 11:03 AMWhen switched to lazy execution using pauseDispatcher any coroutines started via launch or async will not execute until a call to DelayController.runCurrent or the virtual clock-time has been advanced via one of the methods on DelayController.John O'Reilly
07/28/2021, 11:12 AMJohn O'Reilly
07/28/2021, 11:27 AMpauseDispatcher in these particular tests right now