Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
l0r1s committed Sep 26, 2023
1 parent a9c10bc commit 8bfdec7
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions crates/provider/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,15 +838,9 @@ mod tests {
sleep(Duration::from_secs(30)).await;

// ensure process has correct environment
assert!(node_process
.env
.contains("MY_VAR_1=MY_VALUE_1"));
assert!(node_process
.env
.contains("MY_VAR_2=MY_VALUE_2"));
assert!(node_process
.env
.contains("MY_VAR_3=MY_VALUE_3"));
assert!(node_process.env.contains("MY_VAR_1=MY_VALUE_1"));
assert!(node_process.env.contains("MY_VAR_2=MY_VALUE_2"));
assert!(node_process.env.contains("MY_VAR_3=MY_VALUE_3"));

// ensure log file is created and logs are written and keep being written for some time
timeout(Duration::from_secs(30), async {
Expand Down Expand Up @@ -1418,15 +1412,9 @@ mod tests {
.contains(&"-option4 value4".to_string()));

// ensure process restarted with correct environment
assert!(node_process
.env
.contains("MY_VAR_1=MY_VALUE_1"));
assert!(node_process
.env
.contains("MY_VAR_2=MY_VALUE_2"));
assert!(node_process
.env
.contains("MY_VAR_3=MY_VALUE_3"));
assert!(node_process.env.contains("MY_VAR_1=MY_VALUE_1"));
assert!(node_process.env.contains("MY_VAR_2=MY_VALUE_2"));
assert!(node_process.env.contains("MY_VAR_3=MY_VALUE_3"));

// ensure log writing restarted and they keep being written for some time
timeout(Duration::from_secs(30), async {
Expand Down Expand Up @@ -1530,7 +1518,7 @@ mod tests {
.map(|line| {
let mut parts = line.split_whitespace();

let pid = parts.next().unwrap().parse().unwrap();
let pid = parts.next().unwrap().parse().unwrap();

parts.next(); // skip tty

Expand Down

0 comments on commit 8bfdec7

Please sign in to comment.