mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 05:54:30 +01:00
Fix the get_settings tests
This commit is contained in:
parent
ce37f53a16
commit
0258659278
@ -48,7 +48,7 @@ impl Index<'_> {
|
|||||||
});
|
});
|
||||||
let url = format!("/indexes/{}", encode(self.uid.as_ref()));
|
let url = format!("/indexes/{}", encode(self.uid.as_ref()));
|
||||||
|
|
||||||
self.service.put(url, body).await
|
self.service.patch(url, body).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn delete(&self) -> (Value, StatusCode) {
|
pub async fn delete(&self) -> (Value, StatusCode) {
|
||||||
|
@ -214,7 +214,7 @@ macro_rules! test_setting_routes {
|
|||||||
.chars()
|
.chars()
|
||||||
.map(|c| if c == '_' { '-' } else { c })
|
.map(|c| if c == '_' { '-' } else { c })
|
||||||
.collect::<String>());
|
.collect::<String>());
|
||||||
let (response, code) = server.service.post(url, serde_json::Value::Null).await;
|
let (response, code) = server.service.put(url, serde_json::Value::Null).await;
|
||||||
assert_eq!(code, 202, "{}", response);
|
assert_eq!(code, 202, "{}", response);
|
||||||
server.index("").wait_task(0).await;
|
server.index("").wait_task(0).await;
|
||||||
let (response, code) = server.index("test").get().await;
|
let (response, code) = server.index("test").get().await;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user