mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
fix: coverity regression reported on 2021-11-17
Xref: https://scan5.coverity.com/reports.htm\#v48014/p10174/fileInstanceId\=203957995\&defectInstanceId\=52250103\&mergedDefectId\=1494366
This commit is contained in:
parent
f14e741052
commit
617df25ba1
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ TEST(Metainfo, magnetLink)
|
|||
auto const parse_result = tr_torrentParse(ctor, &inf);
|
||||
EXPECT_EQ(TR_PARSE_OK, parse_result);
|
||||
EXPECT_EQ(0, inf.fileCount); // because it's a magnet link
|
||||
ASSERT_EQ(2, inf.trackerCount);
|
||||
EXPECT_EQ(2, inf.trackerCount);
|
||||
if (inf.trackerCount >= 1)
|
||||
{
|
||||
EXPECT_STREQ("http://tracker.publicbt.com/announce", inf.trackers[0].announce);
|
||||
|
|
Loading…
Reference in a new issue