Skip to content

Commit

Permalink
Allow hitting HTTP endpoints in tests
Browse files Browse the repository at this point in the history
This is being done in init_logger() which means its typically as early
as possible for most tests
  • Loading branch information
rtyler committed Dec 17, 2023
1 parent 0b9072d commit fc90494
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ pub fn create_runtime(name: &str) -> Runtime {
}

pub fn init_logger() {
// Any time the test_aws_endpoint() is being used the ability to hit HTTP hosts
// needs to be enabled
env::set_var("AWS_ALLOW_HTTP", "true");

let _ = env_logger::Builder::new()
.format(|buf, record| {
let thread_name = std::thread::current()
Expand Down

0 comments on commit fc90494

Please sign in to comment.