Skip to content

Commit 5406fd1

Browse files
test: condense verbose comment to one line
1 parent b743448 commit 5406fd1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Nethermind/Nethermind.Network.Dns.Test/EnrTreeParserTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public void Can_parse_leaf()
4242
Assert.That(leaf.NodeRecord, Is.EqualTo(enr.Substring(4)));
4343
}
4444

45-
// A malformed enrtree-root from an untrusted DNS record must surface as a FormatException
46-
// (caught and skipped by the crawler), never an unhandled ArgumentOutOfRangeException that aborts the crawl.
45+
// Malformed input must surface as a FormatException the crawler can catch, not an unhandled exception that aborts the crawl.
4746
[TestCase("enrtree-root:v1", TestName = "all fields missing")]
4847
[TestCase("enrtree-root:v1 e=TPLRUM3FAKJZIRMXADWOHSU3PM l=FDXN3SN67NA5DKA4J2GOK7BVQI seq=2779sig=CNoJofW_lNh7QFQkaVGhEX2ifbEZ3UkiBQCVyZCkM_I-72cEh8Bfd21cSS9BP5tyAqWF3jMVov8duUCdSByEQAE", TestName = "no space after seq value")]
4948
[TestCase("enrtree-root:v1 e=TPLRUM3FAKJZIRMXADWOHSU3PM l=FDXN3SN67NA5DKA4J2GOK7BVQI sig=CNoJofW_lNh7QFQkaVGhEX2ifbEZ3UkiBQCVyZCkM_I-72cEh8Bfd21cSS9BP5tyAqWF3jMVov8duUCdSByEQAE", TestName = "seq field missing")]

0 commit comments

Comments
 (0)