mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-19 18:21:21 +00:00
Add a test for set_busy_handler
This commit is contained in:
@ -132,4 +132,11 @@ mod tests {
|
||||
_ => assert!(false),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn set_busy_handler() {
|
||||
let (path, _directory) = setup();
|
||||
let mut database = ok!(Database::open(&path));
|
||||
ok!(database.set_busy_handler(Some(&mut |_| true)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user