Fix error that rust-analyzer reports because it is compiling all code with the test cfg

This commit is contained in:
Louis Dureuil
2025-11-06 18:10:59 +01:00
parent 34765b556b
commit a987d698c1
2 changed files with 35 additions and 11 deletions

View File

@@ -126,7 +126,7 @@ impl IndexScheduler {
std::fs::create_dir_all(&options.auth_path).unwrap();
let auth_env = open_auth_store_env(&options.auth_path).unwrap();
let index_scheduler =
Self::new(options, auth_env, version, None, sender, planned_failures).unwrap();
Self::new_test(options, auth_env, version, None, sender, planned_failures).unwrap();
// To be 100% consistent between all test we're going to start the scheduler right now
// and ensure it's in the expected starting state.