diff --git a/aws/rust-runtime/aws-config/src/default_provider/credentials.rs b/aws/rust-runtime/aws-config/src/default_provider/credentials.rs index 70b5725d0b1..7f04b334b56 100644 --- a/aws/rust-runtime/aws-config/src/default_provider/credentials.rs +++ b/aws/rust-runtime/aws-config/src/default_provider/credentials.rs @@ -298,7 +298,9 @@ mod test { make_test!(ecs_credentials); make_test!(ecs_credentials_invalid_profile); + #[cfg(feature = "credentials-sso")] make_test!(sso_assume_role); + #[cfg(feature = "credentials-sso")] make_test!(sso_no_token_file); #[tokio::test] diff --git a/aws/rust-runtime/aws-config/src/imds/credentials.rs b/aws/rust-runtime/aws-config/src/imds/credentials.rs index c260ba51f11..665d03f8015 100644 --- a/aws/rust-runtime/aws-config/src/imds/credentials.rs +++ b/aws/rust-runtime/aws-config/src/imds/credentials.rs @@ -432,7 +432,7 @@ mod test { #[tokio::test] #[cfg(any(feature = "rustls", feature = "native-tls"))] async fn external_timeout_during_credentials_refresh_should_yield_last_retrieved_credentials() { - use aws_sdk_sso::config::AsyncSleep; + use aws_smithy_async::rt::sleep::AsyncSleep; let client = crate::imds::Client::builder() // 240.* can never be resolved .endpoint(http::Uri::from_static("http://240.0.0.0")) diff --git a/aws/sdk/integration-tests/webassembly/src/adapter/http_client.rs b/aws/sdk/integration-tests/webassembly/src/adapter/http_client.rs index 25d447053ae..5ca84838c9f 100644 --- a/aws/sdk/integration-tests/webassembly/src/adapter/http_client.rs +++ b/aws/sdk/integration-tests/webassembly/src/adapter/http_client.rs @@ -5,9 +5,7 @@ use aws_smithy_http::body::SdkBody; -pub(crate) fn make_request( - _req: http::Request, -) -> anyhow::Result> { +pub(crate) fn make_request(_req: http::Request) -> Result, ()> { // Consumers here would pass the HTTP request to // the Wasm host in order to get the response back let body = "