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