Fix comment in testing example

This commit is contained in:
David Pedersen 2023-11-27 10:58:03 +01:00
parent 773bb5db69
commit 9d0e634285

View file

@ -58,12 +58,11 @@ mod tests {
extract::connect_info::MockConnectInfo, extract::connect_info::MockConnectInfo,
http::{self, Request, StatusCode}, http::{self, Request, StatusCode},
}; };
use http_body_util::BodyExt; use http_body_util::BodyExt; // for `collect`
use serde_json::{json, Value}; use serde_json::{json, Value};
use std::net::SocketAddr; use std::net::SocketAddr;
use tokio::net::TcpListener; use tokio::net::TcpListener;
use tower::Service; // for `call` use tower::{Service, ServiceExt}; // for `call`, `oneshot`, and `ready`
use tower::ServiceExt; // for `oneshot` and `ready` // for `collect`
#[tokio::test] #[tokio::test]
async fn hello_world() { async fn hello_world() {