Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Feb 1, 2024
1 parent 2ff375c commit bbcdebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nexus/src/app/background/blueprint_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ mod test {
let blueprint = Arc::new(create_blueprint(BTreeMap::new()));
blueprint_tx.send(Some(blueprint)).unwrap();
let value = task.activate(&opctx).await;
println!("activating with no zones: {:?}", value);
assert_eq!(value, json!({}));

// Create a non-empty blueprint describing two servers and verify that
Expand Down Expand Up @@ -247,6 +248,7 @@ mod test {

// Activate the task to trigger zone configuration on the sled-agents
let value = task.activate(&opctx).await;
println!("activating two sled agents: {:?}", value);
assert_eq!(value, json!({}));
s1.verify_and_clear();
s2.verify_and_clear();
Expand Down Expand Up @@ -292,7 +294,7 @@ mod test {
}

let value = task.activate(&opctx).await;
println!("{:?}", value);
println!("after failure: {:?}", value);
let result: ErrorResult = serde_json::from_value(value).unwrap();
assert_eq!(result.errors.len(), 1);
assert!(
Expand Down

0 comments on commit bbcdebd

Please sign in to comment.