test(db): add create_test_pool and use in tests

This commit is contained in:
hdbg
2026-02-14 18:17:48 +01:00
parent 69dd8f57ca
commit 81a55d28f0
6 changed files with 27 additions and 15 deletions

View File

@@ -322,9 +322,7 @@ mod tests {
#[tokio::test]
#[test_log::test]
pub async fn test_bootstrap_token_auth() {
let db = db::create_pool(Some("sqlite://:memory:"))
.await
.expect("Failed to create database pool");
let db = db::create_test_pool().await;
// explicitly not installing any user_agent pubkeys
let bootstrapper = BootstrapActor::new(&db).await.unwrap(); // this will create bootstrap token
let token = bootstrapper.get_token().unwrap();