mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-28 01:01:00 +00:00
fix tests
This commit is contained in:
@ -70,5 +70,5 @@ async fn test_create_multiple_indexes() {
|
||||
assert_eq!(index1.get().await.1, 200);
|
||||
assert_eq!(index2.get().await.1, 200);
|
||||
assert_eq!(index3.get().await.1, 200);
|
||||
assert_eq!(index4.get().await.1, 400);
|
||||
assert_eq!(index4.get().await.1, 404);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ async fn create_and_delete_index() {
|
||||
|
||||
assert_eq!(code, 204);
|
||||
|
||||
assert_eq!(index.get().await.1, 400);
|
||||
assert_eq!(index.get().await.1, 404);
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
@ -21,5 +21,5 @@ async fn delete_unexisting_index() {
|
||||
let index = server.index("test");
|
||||
let (_response, code) = index.delete().await;
|
||||
|
||||
assert_eq!(code, 400);
|
||||
assert_eq!(code, 404);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ async fn get_unexisting_index() {
|
||||
|
||||
let (_response, code) = index.get().await;
|
||||
|
||||
assert_eq!(code, 400);
|
||||
assert_eq!(code, 404);
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
|
@ -60,5 +60,5 @@ async fn update_existing_primary_key() {
|
||||
async fn test_unexisting_index() {
|
||||
let server = Server::new().await;
|
||||
let (_response, code) = server.index("test").update(None).await;
|
||||
assert_eq!(code, 400);
|
||||
assert_eq!(code, 404);
|
||||
}
|
||||
|
Reference in New Issue
Block a user