File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import aws.sdk.kotlin.runtime.auth.credentials.executeCommand
77import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderException
88import aws.smithy.kotlin.runtime.util.OsFamily
99import aws.smithy.kotlin.runtime.util.PlatformProvider
10- import kotlinx.coroutines.TimeoutCancellationException
1110import kotlinx.coroutines.test.runTest
1211import kotlin.test.Test
1312import kotlin.test.assertEquals
13+ import kotlin.test.assertFails
1414import kotlin.test.assertFailsWith
1515
1616class ExecuteCommandTest {
@@ -38,7 +38,7 @@ class ExecuteCommandTest {
3838
3939 @Test
4040 fun testExecutionTimedOut () = runTest {
41- assertFailsWith< TimeoutCancellationException > {
41+ assertFails {
4242 executeCommand(
4343 command = " this won't be executed" ,
4444 platformProvider = provider,
You can’t perform that action at this time.
0 commit comments