-
Notifications
You must be signed in to change notification settings - Fork 26
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
Chore coroutine version bump #580
Conversation
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.
What's the scope for updating APIs that use integers as durations? The retry classes use integer milliseconds in StandardRetryStrategyOptions
and ExponentialBackoffWithJitterOptions
.
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.
Nice! Other than the APIs Ian called out and a few questions looks great
runtime/io/build.gradle.kts
Outdated
@@ -25,6 +25,7 @@ kotlin { | |||
commonTest { | |||
dependencies { | |||
implementation(project(":runtime:testing")) |
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.
I'm guessing we don't need this dependency in a lot of places anymore since most usages of it were to pull in runSuspendTest
.
Not sure which projects are still using the other capabilities that remain.
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.
It seems that there are none, as I removed them all and nothing broke... 🤷
import kotlin.test.Test | ||
import kotlin.test.assertEquals | ||
import kotlin.test.assertFails | ||
|
||
@OptIn(ExperimentalCoroutinesApi::class) |
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.
question
What API is experimental that we have to opt-in to? (haven't played with the new APIs yet)
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.
the new runTests
provided by coroutines-test
is experimental
@@ -95,11 +97,11 @@ class MutateHeadersTest { | |||
// should leave in existing | |||
assertEquals("qux", call.request.headers["baz"]) | |||
|
|||
return@runSuspendTest | |||
return@runTest |
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.
question
Do we even need these returns?
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.
I didn't notice this. No, removed.
"Took more than ${options.maxTimeMs}ms to yield a result", | ||
"Took more than ${options.maxTime}ms to yield a result", |
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.
Nit: The literal "ms"
is now unnecessary. Duration.toString
already formats units alongside values.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Companion PR: awslabs/aws-sdk-kotlin#514
Issue #
awslabs/aws-sdk-kotlin#513
Description of changes