From 08c982e38c9f22da4b2622e8a380244ce2ecf020 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Fri, 24 May 2024 14:40:52 +0100 Subject: [PATCH] Correctly cleanup after new tests... --- nexus/db-queries/src/db/datastore/vpc.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nexus/db-queries/src/db/datastore/vpc.rs b/nexus/db-queries/src/db/datastore/vpc.rs index a5ceb9a2c0..ae4db4813f 100644 --- a/nexus/db-queries/src/db/datastore/vpc.rs +++ b/nexus/db-queries/src/db/datastore/vpc.rs @@ -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, _) = @@ -2738,5 +2738,8 @@ mod tests { RouterTarget::Ip(ip) => *ip == nic.ip.ip(), _ => false, })); + + db.cleanup().await.unwrap(); + logctx.cleanup_successful(); } }