diff options
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 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); } |