From 66c62d69b9aa29b941c5a65ba59e78fe380a82d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 18 Nov 2023 10:16:24 +0200 Subject: [PATCH] aws: Stop using deprecated aws_config function in the test --- net/aws/tests/s3.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/aws/tests/s3.rs b/net/aws/tests/s3.rs index fafd4a24..f4ca8a96 100644 --- a/net/aws/tests/s3.rs +++ b/net/aws/tests/s3.rs @@ -68,7 +68,10 @@ mod tests { ) .or_default_provider(); - let config = aws_config::from_env().region(region_provider).load().await; + let config = aws_config::defaults(aws_config::BehaviorVersion::latest()) + .region(region_provider) + .load() + .await; let client = aws_sdk_s3::Client::new(&config); client