mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
rewrite part of the index-scheduler upgrade test
This commit is contained in:
parent
c27c923439
commit
8f65f35de9
10 changed files with 147 additions and 78 deletions
|
@ -165,6 +165,7 @@ fn test_disable_auto_deletion_of_tasks() {
|
|||
let (index_scheduler, mut handle) = IndexScheduler::test_with_custom_config(vec![], |config| {
|
||||
config.cleanup_enabled = false;
|
||||
config.max_number_of_tasks = 2;
|
||||
None
|
||||
});
|
||||
|
||||
index_scheduler
|
||||
|
@ -228,6 +229,7 @@ fn test_disable_auto_deletion_of_tasks() {
|
|||
fn test_auto_deletion_of_tasks() {
|
||||
let (index_scheduler, mut handle) = IndexScheduler::test_with_custom_config(vec![], |config| {
|
||||
config.max_number_of_tasks = 2;
|
||||
None
|
||||
});
|
||||
|
||||
index_scheduler
|
||||
|
@ -325,6 +327,7 @@ fn test_task_queue_is_full() {
|
|||
let (index_scheduler, mut handle) = IndexScheduler::test_with_custom_config(vec![], |config| {
|
||||
// that's the minimum map size possible
|
||||
config.task_db_size = 1048576;
|
||||
None
|
||||
});
|
||||
|
||||
index_scheduler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue