()
| 394 | |
| 395 | #[tokio::test] |
| 396 | async fn test_pool_stats() { |
| 397 | let pool = SqlitePool::new_with_size(":memory:", 3).unwrap(); |
| 398 | |
| 399 | let _conn1 = pool.acquire().await.unwrap(); |
| 400 | let _conn2 = pool.acquire().await.unwrap(); |
| 401 | |
| 402 | let stats = pool.get_stats(); |
| 403 | assert!(stats.active_connections >= 2); |
| 404 | assert!(stats.connections_created > 0); |
| 405 | } |
| 406 | |
| 407 | #[tokio::test] |
| 408 | async fn test_connection_timeout_and_cleanup() { |