mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-31 07:23:15 +08:00
restore test
This commit is contained in:
parent
4552c42f88
commit
7d2ae9089e
@ -112,17 +112,12 @@ impl IndexController for LocalIndexController {
|
|||||||
.map(UpdateStatus::from)
|
.map(UpdateStatus::from)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.chain(pending.
|
.chain(pending.
|
||||||
filter_map(|p| p.ok())
|
filter_map(Result::ok)
|
||||||
// if an update is processing, filter out this update from the pending
|
// If an update is processing, filter out this update from the pending
|
||||||
// updates.
|
// updates.
|
||||||
.filter(|(_, u)| {
|
.filter(|(_, u)| processing_id
|
||||||
println!("processing: {:?}", processing_id);
|
.map(|id| id != u.id())
|
||||||
processing_id
|
.unwrap_or(true))
|
||||||
.map(|id| {
|
|
||||||
println!("id: {}, pending: {}", id, u.id());
|
|
||||||
id != u.id()
|
|
||||||
})
|
|
||||||
.unwrap_or(true)})
|
|
||||||
.map(|(_, u)| UpdateStatus::from(u)))
|
.map(|(_, u)| UpdateStatus::from(u)))
|
||||||
.chain(aborted.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
.chain(aborted.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
||||||
.chain(processed.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
.chain(processed.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
||||||
|
@ -50,9 +50,7 @@ async fn list_no_updates() {
|
|||||||
assert!(response.as_array().unwrap().is_empty());
|
assert!(response.as_array().unwrap().is_empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fix #32
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
#[ignore]
|
|
||||||
async fn list_updates() {
|
async fn list_updates() {
|
||||||
let server = Server::new().await;
|
let server = Server::new().await;
|
||||||
let index = server.index("test");
|
let index = server.index("test");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user