Skip to content

Commit

Permalink
fix nondeterministic test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Jan 25, 2024
1 parent 0681a8d commit e9d4bb1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions nexus/db-queries/src/db/datastore/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,10 +1363,14 @@ mod tests {
.expect("failed to read collection back");
println!("diff: {}", blueprint2.diff(&blueprint_read));
assert_eq!(blueprint2, blueprint_read);
assert_eq!(
blueprint_list_all_ids(&opctx, &datastore).await,
[blueprint1.id, blueprint2.id]
);
{
let mut expected_ids = [blueprint1.id, blueprint2.id];
expected_ids.sort();
assert_eq!(
blueprint_list_all_ids(&opctx, &datastore).await,
expected_ids
);
}

// Set blueprint2 as the current target and ensure that means we can not
// delete it.
Expand Down

0 comments on commit e9d4bb1

Please sign in to comment.