Skip to content

Commit

Permalink
style: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey committed Sep 28, 2023
1 parent ea58ef6 commit 817c20f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions testcontainers/src/clients/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,13 @@ mod tests {
let after_logs = Instant::now();

const ONE_SEC: Duration = Duration::from_secs(1);
assert!((after_run - before_run) > ONE_SEC, "run completed in less than a second");
assert!((after_logs - before_logs) < ONE_SEC, "log fetching took more than a second");
assert!(
(after_run - before_run) > ONE_SEC,
"run completed in less than a second"
);
assert!(
(after_logs - before_logs) < ONE_SEC,
"log fetching took more than a second"
);
}
}
8 changes: 6 additions & 2 deletions testcontainers/src/clients/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,12 @@ mod tests {

// inspect volume and env
let container_details = inspect(&docker.inner.bollard, container.id()).await;
let publish_ports = container_details.host_config.unwrap().publish_all_ports;
assert_eq!(publish_ports, Some(true), "publish_all_ports must be `true`");
let publish_ports = container_details
.host_config
.unwrap()
.publish_all_ports
.unwrap();
assert_eq!(publish_ports, true, "publish_all_ports must be `true`");
}

#[tokio::test(flavor = "multi_thread")]
Expand Down

0 comments on commit 817c20f

Please sign in to comment.