cargo fmt
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex 2022-04-27 11:03:07 +02:00
parent 9ed52f36cc
commit c2e91cc4de
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -473,7 +473,13 @@ async fn test_item_return_format() {
"application/json" "application/json"
); );
let res_body = json_body(res).await; let res_body = json_body(res).await;
assert_json_eq!(res_body, json!([base64::encode(&single_value), base64::encode(&concurrent_value)])); assert_json_eq!(
res_body,
json!([
base64::encode(&single_value),
base64::encode(&concurrent_value)
])
);
// f1: not specified // f1: not specified
let res = ctx let res = ctx
@ -491,7 +497,13 @@ async fn test_item_return_format() {
"application/json" "application/json"
); );
let res_body = json_body(res).await; let res_body = json_body(res).await;
assert_json_eq!(res_body, json!([base64::encode(&single_value), base64::encode(&concurrent_value)])); assert_json_eq!(
res_body,
json!([
base64::encode(&single_value),
base64::encode(&concurrent_value)
])
);
// f2: binary // f2: binary
let res = ctx let res = ctx
@ -504,7 +516,7 @@ async fn test_item_return_format() {
.send() .send()
.await .await
.unwrap(); .unwrap();
assert_eq!(res.status(), 409); // CONFLICT assert_eq!(res.status(), 409); // CONFLICT
// f3: json // f3: json
let res = ctx let res = ctx
@ -523,7 +535,13 @@ async fn test_item_return_format() {
"application/json" "application/json"
); );
let res_body = json_body(res).await; let res_body = json_body(res).await;
assert_json_eq!(res_body, json!([base64::encode(&single_value), base64::encode(&concurrent_value)])); assert_json_eq!(
res_body,
json!([
base64::encode(&single_value),
base64::encode(&concurrent_value)
])
);
// -- Delete first value, concurrently with second insert -- // -- Delete first value, concurrently with second insert --
// -- (we now have a concurrent value and a deletion) -- // -- (we now have a concurrent value and a deletion) --
@ -595,7 +613,7 @@ async fn test_item_return_format() {
.send() .send()
.await .await
.unwrap(); .unwrap();
assert_eq!(res.status(), 409); // CONFLICT assert_eq!(res.status(), 409); // CONFLICT
// f3: json // f3: json
let res = ctx let res = ctx
@ -616,7 +634,6 @@ async fn test_item_return_format() {
let res_body = json_body(res).await; let res_body = json_body(res).await;
assert_json_eq!(res_body, json!([base64::encode(&concurrent_value), null])); assert_json_eq!(res_body, json!([base64::encode(&concurrent_value), null]));
// -- Delete everything -- // -- Delete everything --
let res = ctx let res = ctx
.k2v .k2v
@ -673,7 +690,7 @@ async fn test_item_return_format() {
.send() .send()
.await .await
.unwrap(); .unwrap();
assert_eq!(res.status(), 204); // NO CONTENT assert_eq!(res.status(), 204); // NO CONTENT
// f3: json // f3: json
let res = ctx let res = ctx