mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-04 10:35:46 +01:00
WIP fix the tests
This commit is contained in:
parent
9dd4423054
commit
e257710961
@ -38,6 +38,7 @@ pub fn snapshot_index_scheduler(scheduler: &IndexScheduler) -> String {
|
||||
test_breakpoint_sdr: _,
|
||||
planned_failures: _,
|
||||
run_loop_iteration: _,
|
||||
zookeeper: _,
|
||||
} = scheduler;
|
||||
|
||||
let rtxn = env.read_txn().unwrap();
|
||||
|
@ -608,13 +608,12 @@ impl IndexScheduler {
|
||||
/// only once per index scheduler.
|
||||
fn run(&self) {
|
||||
#[cfg(test)]
|
||||
run.breakpoint(Breakpoint::Init);
|
||||
self.breakpoint(Breakpoint::Init);
|
||||
|
||||
let latch = match self.zookeeper.clone() {
|
||||
Some(zookeeper) => {
|
||||
let id = Uuid::new_v4().to_string();
|
||||
let latch = LeaderLatch::new(zookeeper.clone(), id, "/election".to_string());
|
||||
latch.start().unwrap();
|
||||
|
||||
let this = self.private_clone();
|
||||
zookeeper
|
||||
@ -1941,6 +1940,7 @@ mod tests {
|
||||
autobatching_enabled: true,
|
||||
max_number_of_tasks: 1_000_000,
|
||||
instance_features: Default::default(),
|
||||
zookeeper: None,
|
||||
};
|
||||
configuration(&mut options);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user