Deleted mut on app variable
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m21s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m21s
This commit is contained in:
parent
432b28484f
commit
74618cdf84
@ -55,7 +55,7 @@ async fn http_store_success_and_conflicts_and_invalids() {
|
|||||||
// app with permanent=false so default TTL applies when missing
|
// app with permanent=false so default TTL applies when missing
|
||||||
let td = TempDir::new().unwrap();
|
let td = TempDir::new().unwrap();
|
||||||
let storage = td.path().to_string_lossy().to_string();
|
let storage = td.path().to_string_lossy().to_string();
|
||||||
let mut app = create_app(false, storage);
|
let app = create_app(false, storage);
|
||||||
let listener = async_std::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
let listener = async_std::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
||||||
let addr = listener.local_addr().unwrap();
|
let addr = listener.local_addr().unwrap();
|
||||||
async_std::task::spawn(async move { app.listen(listener).await.unwrap() });
|
async_std::task::spawn(async move { app.listen(listener).await.unwrap() });
|
||||||
@ -88,7 +88,7 @@ async fn http_store_success_and_conflicts_and_invalids() {
|
|||||||
async fn http_retrieve_success_and_invalid_and_notfound() {
|
async fn http_retrieve_success_and_invalid_and_notfound() {
|
||||||
let td = TempDir::new().unwrap();
|
let td = TempDir::new().unwrap();
|
||||||
let storage = td.path().to_string_lossy().to_string();
|
let storage = td.path().to_string_lossy().to_string();
|
||||||
let mut app = create_app(true, storage.clone());
|
let app = create_app(true, storage.clone());
|
||||||
let listener = async_std::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
let listener = async_std::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
||||||
let addr = listener.local_addr().unwrap();
|
let addr = listener.local_addr().unwrap();
|
||||||
async_std::task::spawn(async move { app.listen(listener).await.unwrap() });
|
async_std::task::spawn(async move { app.listen(listener).await.unwrap() });
|
||||||
@ -121,7 +121,7 @@ async fn http_retrieve_success_and_invalid_and_notfound() {
|
|||||||
async fn http_health_ok() {
|
async fn http_health_ok() {
|
||||||
let td = TempDir::new().unwrap();
|
let td = TempDir::new().unwrap();
|
||||||
let storage = td.path().to_string_lossy().to_string();
|
let storage = td.path().to_string_lossy().to_string();
|
||||||
let mut app = create_app(true, storage);
|
let app = create_app(true, storage);
|
||||||
let listener = async_std::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
let listener = async_std::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
||||||
let addr = listener.local_addr().unwrap();
|
let addr = listener.local_addr().unwrap();
|
||||||
async_std::task::spawn(async move { app.listen(listener).await.unwrap() });
|
async_std::task::spawn(async move { app.listen(listener).await.unwrap() });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user