fix tests

This commit is contained in:
Cong Chen 2023-07-01 09:32:50 +08:00
parent 3bdf01bc1c
commit 9859e65d2f
2 changed files with 3 additions and 4 deletions

View file

@ -1815,12 +1815,12 @@ mod tests {
#[test]
fn test_task_is_processing() {
let (index_scheduler, mut handle) = IndexScheduler::test(true, vec![]);
let (index_scheduler, _handle) = IndexScheduler::test(true, vec![]);
index_scheduler.register(index_creation_task("index_a", "id")).unwrap();
snapshot!(snapshot_index_scheduler(&index_scheduler), name: "registered_a_task");
assert_eq!(index_scheduler.is_task_processing().unwrap(), true);
assert!(index_scheduler.is_task_processing().unwrap());
}
/// We send a lot of tasks but notify the tasks scheduler only once as