Add a test for set_busy_handler

This commit is contained in:
Ivan Ukhov 2015-06-08 09:43:13 -04:00
parent 1f0db50312
commit 159b22c159

View File

@ -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)));
}
}