update test

This commit is contained in:
gorogoroumaru 2020-10-10 02:56:44 +00:00
parent 7c646e031c
commit 26124e6436

View File

@ -777,3 +777,17 @@ async fn update_existing_primary_key_is_error() {
assert_eq!(response["errorCode"], "primary_key_already_present"); assert_eq!(response["errorCode"], "primary_key_already_present");
assert_eq!(response["errorType"], "invalid_request_error"); assert_eq!(response["errorType"], "invalid_request_error");
} }
#[actix_rt::test]
async fn test_facets_distribution_attribute() {
let mut server = common::Server::test_server().await;
let (response, _status_code) = server.get_index_stats().await;
let expected = json!({
"isIndexing": false,
"fieldsDistribution":{},
});
assert_json_eq!(expected, response, ordered: true);
}