Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
allevo committed Oct 31, 2024
1 parent 053d875 commit 186d921
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions rustorama/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ fn create_manager(config: RustoramaConfig) -> CollectionManager {
mod tests {
use super::*;

use std::collections::HashMap;
use std::time::Duration;
use futures::future::Either;
use futures::{future, pin_mut};
use hurl::runner;
use hurl::runner::{Value, RunnerOptionsBuilder};
use hurl::runner::{RunnerOptionsBuilder, Value};
use hurl::util::logger::{LoggerOptionsBuilder, Verbosity};
use futures::{future, pin_mut};
use std::collections::HashMap;
use std::time::Duration;
use tempdir::TempDir;
use tokio::time::sleep;

Expand All @@ -86,24 +86,19 @@ mod tests {

let content = include_str!("../../api-test.hurl");

let runner_opts = RunnerOptionsBuilder::new()
.follow_location(true)
.build();
let runner_opts = RunnerOptionsBuilder::new().follow_location(true).build();
let logger_opts = LoggerOptionsBuilder::new()
.verbosity(Some(Verbosity::Verbose))
.build();

let variables: HashMap<_, _> = vec![
("base_url".to_string(), Value::String(format!("http://{}:{}", HOST, PORT))),
].into_iter().collect();

let result = runner::run(
content,
None,
&runner_opts,
&variables,
&logger_opts
);
let variables: HashMap<_, _> = vec![(
"base_url".to_string(),
Value::String(format!("http://{}:{}", HOST, PORT)),
)]
.into_iter()
.collect();

let result = runner::run(content, None, &runner_opts, &variables, &logger_opts);
assert!(result.unwrap().success);
}

Expand All @@ -118,4 +113,4 @@ mod tests {
Either::Right((value2, _)) => value2,
};
}
}
}

0 comments on commit 186d921

Please sign in to comment.