Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching coroutine in test lambda does not attach to the correct scope #830

Closed
sksamuel opened this issue Jun 13, 2019 · 5 comments
Closed
Assignees
Labels
bug 🐛 Issues that report a problem or error in the code.
Milestone

Comments

@sksamuel
Copy link
Member

Seems like its not handled so the test doesn't complete properly.

@sksamuel sksamuel added the bug 🐛 Issues that report a problem or error in the code. label Jun 13, 2019
@LeoColman
Copy link
Member

LeoColman commented Jun 13, 2019 via email

@sksamuel
Copy link
Member Author

sksamuel commented Jun 13, 2019 via email

@sksamuel
Copy link
Member Author

sksamuel commented Jun 13, 2019 via email

@sksamuel sksamuel self-assigned this Jan 16, 2020
@sksamuel sksamuel added this to the 4.0 milestone Jan 16, 2020
@sksamuel
Copy link
Member Author

Seems to fail for

test("foo") {
  launch {
    error("boom")
  }
}

The test should pick up failures in the nested coroutine.

@sksamuel sksamuel mentioned this issue Jan 16, 2020
88 tasks
@sksamuel sksamuel changed the title Throwing error in coroutine does not fail test Launching coroutine in test lambda does not attach to the correct scope Jan 16, 2020
@sksamuel
Copy link
Member Author

This is a wider bug in that any launched coroutines don't attach to the scope of the text executor. Fixed now in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issues that report a problem or error in the code.
Projects
None yet
Development

No branches or pull requests

2 participants