mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
put back the sleep as it was and fix the from
This commit is contained in:
parent
e5d0bef6d8
commit
d34faa8f9c
@ -36,7 +36,7 @@ async fn perform_snapshot() {
|
|||||||
|
|
||||||
let options = Opt {
|
let options = Opt {
|
||||||
snapshot_dir: snapshot_dir.path().to_owned(),
|
snapshot_dir: snapshot_dir.path().to_owned(),
|
||||||
schedule_snapshot: ScheduleSnapshot::Enabled(1),
|
schedule_snapshot: ScheduleSnapshot::Enabled(2),
|
||||||
..default_settings(temp.path())
|
..default_settings(temp.path())
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ async fn perform_snapshot() {
|
|||||||
|
|
||||||
index.wait_task(2).await;
|
index.wait_task(2).await;
|
||||||
|
|
||||||
sleep(Duration::from_secs(1)).await;
|
sleep(Duration::from_secs(2)).await;
|
||||||
|
|
||||||
let temp = tempfile::tempdir().unwrap();
|
let temp = tempfile::tempdir().unwrap();
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ async fn perform_snapshot() {
|
|||||||
//server.stats(),
|
//server.stats(),
|
||||||
|
|
||||||
// The original instance contains the snapshotCreation task, while the snapshotted-instance does not. For this reason we need to compare the task queue **after** the task 4
|
// The original instance contains the snapshotCreation task, while the snapshotted-instance does not. For this reason we need to compare the task queue **after** the task 4
|
||||||
server.tasks_filter("?from=4"),
|
server.tasks_filter("?from=2"),
|
||||||
|
|
||||||
server.index("test").get_all_documents(GetAllDocumentsOptions::default()),
|
server.index("test").get_all_documents(GetAllDocumentsOptions::default()),
|
||||||
server.index("test").settings(),
|
server.index("test").settings(),
|
||||||
|
Loading…
Reference in New Issue
Block a user