Skip to content

Commit

Permalink
Fix race condition in new unit tests added to AWSCognitoAuthPluginTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcreaser committed Nov 25, 2024
1 parent 98415ba commit 7282fe2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ class AWSCognitoAuthPluginTest {
fun listWebAuthnCredentials() {
val useCase = authPlugin.useCaseFactory.listWebAuthnCredentials()
authPlugin.listWebAuthnCredentials({}, {})
coVerify {
coVerify(timeout = CHANNEL_TIMEOUT) {
useCase.execute(AuthListWebAuthnCredentialsOptions.defaults())
}
}
Expand All @@ -786,7 +786,7 @@ class AWSCognitoAuthPluginTest {
val useCase = authPlugin.useCaseFactory.listWebAuthnCredentials()
val options = AWSCognitoAuthListWebAuthnCredentialsOptions.builder().build()
authPlugin.listWebAuthnCredentials(options, {}, {})
coVerify {
coVerify(timeout = CHANNEL_TIMEOUT) {
useCase.execute(options)
}
}
Expand All @@ -796,7 +796,7 @@ class AWSCognitoAuthPluginTest {
val useCase = authPlugin.useCaseFactory.deleteWebAuthnCredential()
val credentialId = "someId"
authPlugin.deleteWebAuthnCredential(credentialId, {}, {})
coVerify {
coVerify(timeout = CHANNEL_TIMEOUT) {
useCase.execute(credentialId, AuthDeleteWebAuthnCredentialOptions.defaults())
}
}
Expand All @@ -807,7 +807,7 @@ class AWSCognitoAuthPluginTest {
val options: AuthDeleteWebAuthnCredentialOptions = mockk()
val credentialId = "someId"
authPlugin.deleteWebAuthnCredential(credentialId, options, {}, {})
coVerify {
coVerify(timeout = CHANNEL_TIMEOUT) {
useCase.execute(credentialId, options)
}
}
Expand Down

0 comments on commit 7282fe2

Please sign in to comment.