fix: typos in libtransmission tests (#5468)

This commit is contained in:
Gary Elshaw 2023-04-29 11:42:45 +12:00 committed by Charles Kerr
parent 96aefb5fc3
commit 43d1fd33a3
4 changed files with 6 additions and 6 deletions

View File

@ -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>{ tr_pex{ addresses[0].first, addresses[0].second },
tr_pex{ addresses[1].first, addresses[1].second },
tr_pex{ addresses[2].first, addresses[2].second } };

View File

@ -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_));
}

View File

@ -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<std::chrono::seconds>(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<std::chrono::seconds>(1min).count();
mediator.current_time_ = now;
alt_speeds.checkScheduler();

View File

@ -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)