fix unexisting update store + race conditions

This commit is contained in:
mpostma 2021-03-11 22:11:58 +01:00
parent 3f68460d6c
commit 40b3451a4e
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
3 changed files with 48 additions and 14 deletions

View file

@ -46,6 +46,7 @@ async fn list_no_updates() {
let index = server.index("test");
index.create(None).await;
let (response, code) = index.list_updates().await;
println!("response: {}", response);
assert_eq!(code, 200);
assert!(response.as_array().unwrap().is_empty());
}