mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
fix tests
This commit is contained in:
@ -7,7 +7,7 @@ async fn update_primary_key() {
|
||||
let index = server.index("test");
|
||||
let (_, code) = index.create(None).await;
|
||||
|
||||
assert_eq!(code, 200);
|
||||
assert_eq!(code, 201);
|
||||
|
||||
let (response, code) = index.update(Some("primary")).await;
|
||||
|
||||
@ -31,7 +31,7 @@ async fn update_nothing() {
|
||||
let index = server.index("test");
|
||||
let (response, code) = index.create(None).await;
|
||||
|
||||
assert_eq!(code, 200);
|
||||
assert_eq!(code, 201);
|
||||
|
||||
let (update, code) = index.update(None).await;
|
||||
|
||||
@ -47,7 +47,7 @@ async fn update_existing_primary_key() {
|
||||
let index = server.index("test");
|
||||
let (_response, code) = index.create(Some("primary")).await;
|
||||
|
||||
assert_eq!(code, 200);
|
||||
assert_eq!(code, 201);
|
||||
|
||||
let (_update, code) = index.update(Some("primary2")).await;
|
||||
|
||||
|
Reference in New Issue
Block a user