()
| 371 | |
| 372 | #[tokio::test] |
| 373 | async fn test_connection_acquisition() { |
| 374 | let pool = SqlitePool::new_with_size(":memory:", 2).unwrap(); |
| 375 | |
| 376 | let _conn1 = pool.acquire().await.unwrap(); |
| 377 | let stats = pool.get_stats(); |
| 378 | assert!(stats.active_connections > 0); |
| 379 | |
| 380 | let _conn2 = pool.acquire().await.unwrap(); |
| 381 | // When connections are dropped, they should return to pool |
| 382 | } |
| 383 | |
| 384 | #[tokio::test] |
| 385 | async fn test_health_check() { |