Skip to content

Commit 4e218ec

Browse files
committed
assertFailsWith -> assertFails
1 parent 904e357 commit 4e218ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials/ExecuteCommandTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import aws.sdk.kotlin.runtime.auth.credentials.executeCommand
77
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderException
88
import aws.smithy.kotlin.runtime.util.OsFamily
99
import aws.smithy.kotlin.runtime.util.PlatformProvider
10-
import kotlinx.coroutines.TimeoutCancellationException
1110
import kotlinx.coroutines.test.runTest
1211
import kotlin.test.Test
1312
import kotlin.test.assertEquals
13+
import kotlin.test.assertFails
1414
import kotlin.test.assertFailsWith
1515

1616
class 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,

0 commit comments

Comments
 (0)