From c89a1f38ff96bacc4830c71824f2c7e2871ac838 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Mon, 30 Jan 2023 20:51:04 +0000 Subject: [PATCH] fix(http): [#159] minor text fixes --- src/tracker/peer.rs | 2 +- tests/http/server.rs | 6 +++--- tests/http_tracker.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tracker/peer.rs b/src/tracker/peer.rs index 5da894f54..22889381f 100644 --- a/src/tracker/peer.rs +++ b/src/tracker/peer.rs @@ -104,7 +104,7 @@ impl Id { #[must_use] /// Converts to hex string. /// - /// For the Id `-qB00000000000000000` ti returns `2d71423030303030303030303030303030303030` + /// For the Id `-qB00000000000000000` it returns `2d71423030303030303030303030303030303030` /// /// For example: /// diff --git a/tests/http/server.rs b/tests/http/server.rs index 6741d8e97..e48ecd88d 100644 --- a/tests/http/server.rs +++ b/tests/http/server.rs @@ -12,21 +12,21 @@ use torrust_tracker::{ephemeral_instance_keys, logging, static_time, tracker}; use super::connection_info::ConnectionInfo; -/// Starts a HTTP tracker with mode "public" +/// Starts a HTTP tracker with mode "public" in settings pub async fn start_public_http_tracker() -> Server { let mut configuration = ephemeral_configuration(); configuration.mode = Mode::Public; start_custom_http_tracker(Arc::new(configuration)).await } -/// Starts a HTTP tracker with mode "listed" +/// Starts a HTTP tracker with mode "listed" in settings pub async fn start_whitelisted_http_tracker() -> Server { let mut configuration = ephemeral_configuration(); configuration.mode = Mode::Listed; start_custom_http_tracker(Arc::new(configuration)).await } -/// Starts a HTTP tracker with mode "listed" +/// Starts a HTTP tracker with mode "private" in settings pub async fn start_private_http_tracker() -> Server { let mut configuration = ephemeral_configuration(); configuration.mode = Mode::Private; diff --git a/tests/http_tracker.rs b/tests/http_tracker.rs index 3e1391c63..099e1d360 100644 --- a/tests/http_tracker.rs +++ b/tests/http_tracker.rs @@ -46,7 +46,7 @@ mod http_tracker_server { }; #[tokio::test] - async fn should_respond_when_only_the_mandatory_fields_are_provided() { + async fn should_respond_if_only_the_mandatory_fields_are_provided() { let http_tracker_server = start_default_http_tracker().await; let mut params = QueryBuilder::default().query().params(); @@ -251,7 +251,7 @@ mod http_tracker_server { #[tokio::test] async fn should_not_fail_when_the_event_param_is_invalid() { - // All invalid values are ignored as if the `event` param was empty + // All invalid values are ignored as if the `event` param were empty let http_tracker_server = start_default_http_tracker().await;