Skip to content

Commit

Permalink
Merge branch 'main' into typos-libtransmission
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Elshaw committed Apr 29, 2023
2 parents c3740b1 + 2999e71 commit 2ff77cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/libtransmission/announcer-udp-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 } };
Expand Down
2 changes: 1 addition & 1 deletion tests/libtransmission/dht-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_));
}

Expand Down
4 changes: 2 additions & 2 deletions tests/libtransmission/session-alt-speeds-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/libtransmission/utils-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ff77cc

Please sign in to comment.