Skip to content

Commit

Permalink
chore: fix test with no default features
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomourar committed Mar 23, 2023
1 parent d353ac3 commit 4e1487b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-config/src/imds/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

use aws_smithy_http::body::SdkBody;

pub(crate) fn make_request(
_req: http::Request<SdkBody>,
) -> anyhow::Result<http::Response<SdkBody>> {
pub(crate) fn make_request(_req: http::Request<SdkBody>) -> Result<http::Response<SdkBody>, ()> {
// Consumers here would pass the HTTP request to
// the Wasm host in order to get the response back
let body = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
Expand Down

0 comments on commit 4e1487b

Please sign in to comment.