mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
fix tests
This commit is contained in:
parent
0cd8869349
commit
a56e8c1a0c
4 changed files with 17 additions and 9 deletions
|
@ -2,7 +2,7 @@ use std::time::Duration;
|
|||
|
||||
use actix_web::http::StatusCode;
|
||||
use serde_json::{json, Value};
|
||||
use tokio::time::delay_for;
|
||||
use tokio::time::sleep;
|
||||
|
||||
use super::service::Service;
|
||||
|
||||
|
@ -79,7 +79,7 @@ impl Index<'_> {
|
|||
return response;
|
||||
}
|
||||
|
||||
delay_for(Duration::from_secs(1)).await;
|
||||
sleep(Duration::from_secs(1)).await;
|
||||
}
|
||||
panic!("Timeout waiting for update id");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue