fix payload error handler

This commit is contained in:
marin postma 2021-06-21 19:20:04 +02:00
parent 2bdaa70f31
commit 9092d35a3c
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
2 changed files with 56 additions and 24 deletions

View file

@ -565,7 +565,7 @@ fn update_uuid_to_file_path(root: impl AsRef<Path>, uuid: Uuid) -> PathBuf {
#[cfg(test)]
mod test {
use super::*;
use crate::index_controller::{index_actor::MockIndexActorHandle, UpdateResult};
use crate::index_controller::{UpdateResult, index_actor::{MockIndexActorHandle, error::IndexActorError}};
use futures::future::ok;
@ -644,7 +644,7 @@ mod test {
if processing.id() == 0 {
Box::pin(ok(Ok(processing.process(UpdateResult::Other))))
} else {
Box::pin(ok(Err(processing.fail(String::from("err")))))
Box::pin(ok(Err(processing.fail(IndexActorError::ExistingPrimaryKey.into()))))
}
});