Skip to content

Commit

Permalink
Correctly cleanup after new tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMcFelix committed May 24, 2024
1 parent 880378a commit 08c982e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nexus/db-queries/src/db/datastore/vpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,7 @@ mod tests {
let logctx =
dev::test_setup_log("test_vpc_router_rule_instance_resolve");
let log = &logctx.log;
let db = test_setup_database(&logctx.log).await;
let mut db = test_setup_database(&logctx.log).await;
let (opctx, datastore) = datastore_test(&logctx, &db).await;

let (authz_project, authz_vpc, db_vpc, authz_router, _) =
Expand Down Expand Up @@ -2738,5 +2738,8 @@ mod tests {
RouterTarget::Ip(ip) => *ip == nic.ip.ip(),
_ => false,
}));

db.cleanup().await.unwrap();
logctx.cleanup_successful();
}
}

0 comments on commit 08c982e

Please sign in to comment.