Skip to content

Commit

Permalink
Test opfs-sahpool with vfs option
Browse files Browse the repository at this point in the history
  • Loading branch information
Spxg committed Feb 12, 2025
1 parent 16684f4 commit 9b19137
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions diesel/src/sqlite/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,10 +993,11 @@ mod tests {
#[cfg(all(target_family = "wasm", target_os = "unknown"))]
#[wasm_bindgen_test::wasm_bindgen_test]
async fn test_sqlite_wasm_vfs_opfs_sahpool() {
let util = sqlite_wasm_rs::export::install_opfs_sahpool(None, true)
let util = sqlite_wasm_rs::export::install_opfs_sahpool(None, false)
.await
.unwrap();
SqliteConnection::establish("test_sqlite_wasm_vfs_opfs_sahpool.db").unwrap();
SqliteConnection::establish("file:test_sqlite_wasm_vfs_opfs_sahpool.db?vfs=opfs-sahpool")
.unwrap();
assert!(util.get_file_count() > 0);
}
}

0 comments on commit 9b19137

Please sign in to comment.