Skip to content

Commit a4ac95c

Browse files
committed
f Make constructor fallible
1 parent 75a3560 commit a4ac95c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-persister/src/test_utils.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ pub(crate) struct TestSyncStore {
135135
impl TestSyncStore {
136136
pub(crate) fn new(dest_dir: PathBuf) -> Self {
137137
let fs_store = FilesystemStore::new(dest_dir.clone());
138-
let sqlite_store = SqliteStore::new(dest_dir, Some("test_sync_db".to_string()), Some("test_sync_table".to_string()));
138+
let sqlite_store = SqliteStore::new(dest_dir,
139+
Some("test_sync_db".to_string()), Some("test_sync_table".to_string())).unwrap();
139140
let test_store = TestStore::new(false);
140141
Self { fs_store, sqlite_store, test_store }
141142
}

0 commit comments

Comments
 (0)