diff options
author | Alex <alex@adnab.me> | 2024-03-18 19:02:36 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2024-03-18 19:02:36 +0000 |
commit | 1a0bffae3491fae6af5a8d4defc5c6b84839e197 (patch) | |
tree | fcf59c762f2fd904a8c0567e7466f10a536ae77b /src/db/test.rs | |
parent | fd2e19bf1bf301bc03aa29ffa3fe1e71008cbe50 (diff) | |
parent | b55f52a9b75359b02938ac003a6ea853b36a4f3e (diff) | |
download | garage-1a0bffae3491fae6af5a8d4defc5c6b84839e197.tar.gz garage-1a0bffae3491fae6af5a8d4defc5c6b84839e197.zip |
Merge pull request 'Use connection pooling in sqlite backend' (#779) from sqlite-r2d2 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/779
Diffstat (limited to 'src/db/test.rs')
-rw-r--r-- | src/db/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/test.rs b/src/db/test.rs index cd99eafa..cad25f4d 100644 --- a/src/db/test.rs +++ b/src/db/test.rs @@ -106,6 +106,7 @@ fn test_sled_db() { fn test_sqlite_db() { use crate::sqlite_adapter::SqliteDb; - let db = SqliteDb::init(rusqlite::Connection::open_in_memory().unwrap()); + let manager = r2d2_sqlite::SqliteConnectionManager::memory(); + let db = SqliteDb::new(manager, false).unwrap(); test_suite(db); } |