is a separate CoroutineScope that I inject into the class under test. The objective of this is to continue executing the HTTP request even if the calling scope is cancelled (for example even if the user moves away to a different screen)
But I'm also executing the test inside a
TestScope
provided by kotlin coroutines test library. So looks like both of them are in the same scope and that ends in the parent scope being cancelled.
curioustechizen
02/02/2024, 10:13 AM
If I comment out the
applicationScope.launch
part and directly run my http request in the scope of the calling function, I see some Ktor logs so at least the request is happening.