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 24, 2023
1 parent d353ac3 commit 0beea87
Show file tree
Hide file tree
Showing 4 changed files with 7 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
3 changes: 3 additions & 0 deletions aws/sdk/integration-tests/webassembly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ These tests ensure that things will fail (or not fail) as expected
when target is set to wasm32-wasi for all SDK and runtime crates.
"""
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/awslabs/smithy-rs"
publish = false

[lib]
crate-type = ["cdylib"]
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 0beea87

Please sign in to comment.