Skip to content

Commit

Permalink
fix(monitoring): typos
Browse files Browse the repository at this point in the history
commit-id:365230ca
  • Loading branch information
Itay-Tsabary-Starkware committed Nov 8, 2024
1 parent 93dd596 commit 46c08be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/monitoring_endpoint/src/monitoring_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use tracing::{info, instrument};
use crate::config::MonitoringEndpointConfig;

#[cfg(test)]
#[path = "monitoring_endpoit_test.rs"]
#[path = "monitoring_endpoint_test.rs"]
mod monitoring_endpoint_test;

const MONITORING_PREFIX: &str = "monitoring";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use super::{

const TEST_VERSION: &str = "1.2.3-dev";

fn setup_monitoring_endpont() -> MonitoringEndpoint {
fn setup_monitoring_endpoint() -> MonitoringEndpoint {
create_monitoring_endpoint(MonitoringEndpointConfig::default(), TEST_VERSION)
}

Expand All @@ -39,7 +39,7 @@ async fn request_app(

#[tokio::test]
async fn test_node_version() {
let response = request_app(setup_monitoring_endpont().app(), "nodeVersion").await;
let response = request_app(setup_monitoring_endpoint().app(), "nodeVersion").await;
assert_eq!(response.status(), StatusCode::OK);

let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
Expand All @@ -48,19 +48,19 @@ async fn test_node_version() {

#[tokio::test]
async fn test_alive() {
let response = request_app(setup_monitoring_endpont().app(), "alive").await;
let response = request_app(setup_monitoring_endpoint().app(), "alive").await;
assert_eq!(response.status(), StatusCode::OK);
}

#[tokio::test]
async fn test_ready() {
let response = request_app(setup_monitoring_endpont().app(), "ready").await;
let response = request_app(setup_monitoring_endpoint().app(), "ready").await;
assert_eq!(response.status(), StatusCode::OK);
}

#[tokio::test]
async fn test_endpoint_as_server() {
tokio::spawn(async move { setup_monitoring_endpont().run().await });
tokio::spawn(async move { setup_monitoring_endpoint().run().await });
tokio::task::yield_now().await;

let MonitoringEndpointConfig { ip, port } = MonitoringEndpointConfig::default();
Expand Down

0 comments on commit 46c08be

Please sign in to comment.