From 43d1fd33a347ec1d82c28c9ff9cc9f3a0d2a9b35 Mon Sep 17 00:00:00 2001 From: Gary Elshaw <69029666+GaryElshaw@users.noreply.github.com> Date: Sat, 29 Apr 2023 11:42:45 +1200 Subject: [PATCH] fix: typos in libtransmission tests (#5468) --- tests/libtransmission/announcer-udp-test.cc | 4 ++-- tests/libtransmission/dht-test.cc | 2 +- tests/libtransmission/session-alt-speeds-test.cc | 4 ++-- tests/libtransmission/utils-test.cc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/libtransmission/announcer-udp-test.cc b/tests/libtransmission/announcer-udp-test.cc index 41e44eb5e..0018dc4bb 100644 --- a/tests/libtransmission/announcer-udp-test.cc +++ b/tests/libtransmission/announcer-udp-test.cc @@ -429,7 +429,7 @@ TEST_F(AnnouncerUdpTest, canMultiScrape) TEST_F(AnnouncerUdpTest, canHandleScrapeError) { - // build the expected reponse + // build the expected response auto expected_response = tr_scrape_response{}; expected_response.did_connect = true; expected_response.did_timeout = false; @@ -598,7 +598,7 @@ TEST_F(AnnouncerUdpTest, canAnnounce) expected_response.min_interval = 0; // not specified in UDP announce expected_response.seeders = Seeders; expected_response.leechers = Leechers; - expected_response.downloads = -1; // not specified in UDP anounce + expected_response.downloads = -1; // not specified in UDP announce expected_response.pex = std::vector{ tr_pex{ addresses[0].first, addresses[0].second }, tr_pex{ addresses[1].first, addresses[1].second }, tr_pex{ addresses[2].first, addresses[2].second } }; diff --git a/tests/libtransmission/dht-test.cc b/tests/libtransmission/dht-test.cc index 7e6fb984e..a2cc3ed95 100644 --- a/tests/libtransmission/dht-test.cc +++ b/tests/libtransmission/dht-test.cc @@ -497,7 +497,7 @@ TEST_F(DhtTest, stopsBootstrappingWhenSwarmHealthIsGoodEnough) waitFor(event_base_, MockTimerInterval * 10); // Confirm that the number of nodes pinged is unchanged, - // indicating that boostrapping is done + // indicating that bootstrapping is done EXPECT_EQ(TurnGoodAfterNthPing, std::size(mock_dht.pinged_)); } diff --git a/tests/libtransmission/session-alt-speeds-test.cc b/tests/libtransmission/session-alt-speeds-test.cc index 35e48afd9..e623191e3 100644 --- a/tests/libtransmission/session-alt-speeds-test.cc +++ b/tests/libtransmission/session-alt-speeds-test.cc @@ -125,7 +125,7 @@ TEST_F(SessionAltSpeedsTest, canSchedule) alt_speeds.checkScheduler(); EXPECT_EQ(n_changes, std::size(mediator.changelog_)); - // Confirm that crossin the threshold does enable + // Confirm that crossing the threshold does enable now += std::chrono::duration_cast(1min).count(); mediator.current_time_ = now; alt_speeds.checkScheduler(); @@ -141,7 +141,7 @@ TEST_F(SessionAltSpeedsTest, canSchedule) alt_speeds.checkScheduler(); EXPECT_EQ(n_changes, std::size(mediator.changelog_)); - // Confirm that crossin the threshold does disable + // Confirm that crossing the threshold does disable now += std::chrono::duration_cast(1min).count(); mediator.current_time_ = now; alt_speeds.checkScheduler(); diff --git a/tests/libtransmission/utils-test.cc b/tests/libtransmission/utils-test.cc index ae13eb1af..d3e521bdb 100644 --- a/tests/libtransmission/utils-test.cc +++ b/tests/libtransmission/utils-test.cc @@ -232,7 +232,7 @@ TEST_F(UtilsTest, trStrlcpy) "a", "", "12345678901234567890", - "This, very usefull string contains total of 104 characters not counting null. Almost like an easter egg!" + "This, very useful string contains a total of 105 characters not counting null. Almost like an easter egg!" }; for (auto const& test : tests)