Skip to content

Commit

Permalink
omdb test is flaky because of the order of background tasks printed out
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Oct 19, 2023
1 parent 3080700 commit 90a6ad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev-tools/omdb/src/bin/omdb/nexus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ async fn cmd_nexus_background_tasks_show(
) -> Result<(), anyhow::Error> {
let response =
client.bgtask_list().await.context("listing background tasks")?;
let mut tasks = response.into_inner();
// Convert the HashMap to a BTreeMap because we want the keys in sorted
// order.
let mut tasks = response.into_inner().into_iter().collect::<BTreeMap<_, _>>();

// We want to pick the order that we print some tasks intentionally. Then
// we want to print anything else that we find.
Expand Down

0 comments on commit 90a6ad5

Please sign in to comment.