-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Ensure that all coroutines throwables in core are serializable #3337
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
Conversation
integration/kotlinx-coroutines-guava/test/ListAllCoroutineThrowableSubclassesTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we instead put the test in a separate source set in integration-testing
, only adding the guava dependency to that source set?
We already have it in Guava integration module and it seems to be fine, isn't it? |
For me, it does not, at all, because the test doesn't check the Guava integration, adding a maintenance dependency when there should be none, violating the principle of least surprise.
|
integration/kotlinx-coroutines-guava/test/ListAllCoroutineThrowableSubclassesTest.kt
Outdated
Show resolved
Hide resolved
bd26f72
to
188ab3d
Compare
integration-testing/src/test/kotlin/ListAllCoroutineThrowableSubclassesTest.kt
Outdated
Show resolved
Hide resolved
integration-testing/src/test/kotlin/ListAllCoroutineThrowableSubclassesTest.kt
Outdated
Show resolved
Hide resolved
integration-testing/src/test/kotlin/ListAllCoroutineThrowableSubclassesTest.kt
Outdated
Show resolved
Hide resolved
…ubclassesTest.kt Co-authored-by: dkhalanskyjb <[email protected]>
…ubclassesTest.kt Co-authored-by: dkhalanskyjb <[email protected]>
integration-testing/build.gradle
Outdated
@@ -23,6 +23,13 @@ dependencies { | |||
} | |||
|
|||
sourceSets { | |||
test { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling this source set test
pollutes the other source sets with guava
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name it withGuavaTest
.
I like testWithGuava
more but it breaks our naming convention
integration-testing/src/test/kotlin/ListAllCoroutineThrowableSubclassesTest.kt
Outdated
Show resolved
Hide resolved
…n#3337) * Ensure that all coroutines throwables in core are serializable Fixes Kotlin#3328
Fixes #3328