Skip to content

Commit

Permalink
Added single_item_wrong_digest_size test back to stable
Browse files Browse the repository at this point in the history
  • Loading branch information
allada committed Jan 21, 2021
1 parent 14eebc6 commit b517db1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cas/grpc_service/tests/ac_server_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ mod get_action_result {
}

#[tokio::test]
#[ignore] // TODO(allada) Currently we don't check size in store. This test needs fixed.
async fn single_item_wrong_digest_size() -> Result<(), Box<dyn std::error::Error>> {
let mut store_manager = make_store_manager()?;
let ac_server = make_ac_server(&mut store_manager)?;
Expand All @@ -127,7 +126,10 @@ mod get_action_result {

let err = raw_response.unwrap_err();
assert_eq!(err.code(), Code::NotFound);
assert_eq!(err.message(), "Found item, but size does not match");
assert_eq!(
err.message(),
"Hash 0123456789abcdef000000000000000000000000000000000123456789abcdef not found"
);
Ok(())
}
}
Expand Down

0 comments on commit b517db1

Please sign in to comment.