fix lints
This commit is contained in:
@ -14,6 +14,7 @@ default := 'run'
|
|||||||
watch CMD=default:
|
watch CMD=default:
|
||||||
watchexec -w src -r just {{CMD}}
|
watchexec -w src -r just {{CMD}}
|
||||||
|
|
||||||
|
alias check:=lint
|
||||||
lint *ARGS:
|
lint *ARGS:
|
||||||
cargo clippy -- -Dwarnings -Dclippy::correctness -Wclippy::pedantic -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc {{ARGS}}
|
cargo clippy --all-targets -- -Dwarnings -Dclippy::correctness -Wclippy::pedantic -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc {{ARGS}}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ use std::{sync::LazyLock, time::Duration};
|
|||||||
use http::StatusCode;
|
use http::StatusCode;
|
||||||
use reqwest::Client;
|
use reqwest::Client;
|
||||||
|
|
||||||
static client: LazyLock<Client> = LazyLock::new(|| {
|
static CLIENT: LazyLock<Client> = LazyLock::new(|| {
|
||||||
Client::builder()
|
Client::builder()
|
||||||
.timeout(Duration::from_secs(10))
|
.timeout(Duration::from_secs(10))
|
||||||
.connect_timeout(Duration::from_secs(5))
|
.connect_timeout(Duration::from_secs(5))
|
||||||
@ -13,7 +13,7 @@ static client: LazyLock<Client> = LazyLock::new(|| {
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_healthcheck_returns_healthy() {
|
async fn test_healthcheck_returns_healthy() {
|
||||||
let resp = client
|
let resp = CLIENT
|
||||||
.get("http://localhost:7001/healthcheck")
|
.get("http://localhost:7001/healthcheck")
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user