aboutsummaryrefslogtreecommitdiff
path: root/src/db/test.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-18 20:17:54 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-18 20:19:30 +0100
commit0038ca8a78f147b9c0ec07ef0121773aaf110dc9 (patch)
tree43f39f30c63a6affa62eeea62cfec674f217c2b4 /src/db/test.rs
parent81191d2d92e58ff82ace0f4d82b275c157673ade (diff)
parent1a0bffae3491fae6af5a8d4defc5c6b84839e197 (diff)
downloadgarage-0038ca8a78f147b9c0ec07ef0121773aaf110dc9.tar.gz
garage-0038ca8a78f147b9c0ec07ef0121773aaf110dc9.zip
Merge branch 'main' into next-0.10
Diffstat (limited to 'src/db/test.rs')
-rw-r--r--src/db/test.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/test.rs b/src/db/test.rs
index 3add89fb..adb429e7 100644
--- a/src/db/test.rs
+++ b/src/db/test.rs
@@ -144,6 +144,7 @@ fn test_lmdb_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);
}