From c2e91cc4de4ab7047586e0f3498a26317e3043c9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 27 Apr 2022 11:03:07 +0200 Subject: [PATCH] cargo fmt --- src/garage/tests/k2v/item.rs | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/src/garage/tests/k2v/item.rs b/src/garage/tests/k2v/item.rs index 36b4855d..c7c73751 100644 --- a/src/garage/tests/k2v/item.rs +++ b/src/garage/tests/k2v/item.rs @@ -473,7 +473,13 @@ async fn test_item_return_format() { "application/json" ); 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 let res = ctx @@ -491,7 +497,13 @@ async fn test_item_return_format() { "application/json" ); 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 let res = ctx @@ -504,7 +516,7 @@ async fn test_item_return_format() { .send() .await .unwrap(); - assert_eq!(res.status(), 409); // CONFLICT + assert_eq!(res.status(), 409); // CONFLICT // f3: json let res = ctx @@ -523,7 +535,13 @@ async fn test_item_return_format() { "application/json" ); 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 -- // -- (we now have a concurrent value and a deletion) -- @@ -595,7 +613,7 @@ async fn test_item_return_format() { .send() .await .unwrap(); - assert_eq!(res.status(), 409); // CONFLICT + assert_eq!(res.status(), 409); // CONFLICT // f3: json let res = ctx @@ -616,7 +634,6 @@ async fn test_item_return_format() { let res_body = json_body(res).await; assert_json_eq!(res_body, json!([base64::encode(&concurrent_value), null])); - // -- Delete everything -- let res = ctx .k2v @@ -673,7 +690,7 @@ async fn test_item_return_format() { .send() .await .unwrap(); - assert_eq!(res.status(), 204); // NO CONTENT + assert_eq!(res.status(), 204); // NO CONTENT // f3: json let res = ctx