8000 When use liveData and change to flow by .asFlow() test won't trigger events · Issue #117 · cashapp/turbine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
When use liveData and change to flow by .asFlow() test won't trigger events #117
Open
@mahdit8

Description

@mahdit8

Hi
I have an issue when convert live data to flow like:

 fun foo(
    ): Flow<B> =
        bar().asFlow()
            .map { -> }
foo().test{
 val result = awaitItem()
 Assert.assertEquals(expected, result)
 awaitComplete()
}

Then I got this error
After waiting for 60000 ms, the test coroutine is not completing, there were active child jobs: [ScopeCoroutine{Active}@35c3ef4a]
Previously I faced this issue and find out that in some case should awaitComplete() but it some case that will also not works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0