diff --git a/http/src/v0/pubsub.rs b/http/src/v0/pubsub.rs index 8a06655c..a9662a89 100644 --- a/http/src/v0/pubsub.rs +++ b/http/src/v0/pubsub.rs @@ -564,7 +564,8 @@ mod tests { async fn url_hacked_args() { let response = request() .path("/pubsub/pub?arg=some_channel&arg=foobar") - .reply(&publish_args_as_json("arg")).await; + .reply(&publish_args_as_json("arg")) + .await; let body = str::from_utf8(response.body()).unwrap(); assert_eq!(body, r#"{"message":"foobar","topic":"some_channel"}"#); } @@ -573,14 +574,20 @@ mod tests { async fn message_in_body() { let response = request() .path("/pubsub/pub?arg=some_channel") - .header("content-type", "multipart/form-data; boundary=-----------------------------Z0oYi6XyTm7_x2L4ty8JL") - .body(&b"-------------------------------Z0oYi6XyTm7_x2L4ty8JL\r\n\ + .header( + "content-type", + "multipart/form-data; boundary=-----------------------------Z0oYi6XyTm7_x2L4ty8JL", + ) + .body( + &b"-------------------------------Z0oYi6XyTm7_x2L4ty8JL\r\n\ Content-Disposition: form-data; name=\"file\"; filename=\"\"\r\n\ Content-Type: application/octet-stream\r\n\ \r\n\ aedFIxDJZ2jS1eVB6Pkbv\ - \r\n-------------------------------Z0oYi6XyTm7_x2L4ty8JL--\r\n"[..]) - .reply(&publish_args_as_json("arg")).await; + \r\n-------------------------------Z0oYi6XyTm7_x2L4ty8JL--\r\n"[..], + ) + .reply(&publish_args_as_json("arg")) + .await; let body = str::from_utf8(response.body()).unwrap(); assert_eq!(