return 202 on settings update / reset

This commit is contained in:
Irevoire 2021-03-17 14:44:32 +01:00
parent b6831320f9
commit c8b05712fa
No known key found for this signature in database
GPG key ID: 7A6A970C96104F1B
2 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ async fn update_setting_unexisting_index() {
let server = Server::new().await;
let index = server.index("test");
let (_response, code) = index.update_settings(json!({})).await;
assert_eq!(code, 200);
assert_eq!(code, 202);
let (_response, code) = index.get().await;
assert_eq!(code, 200);
}