Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Nov 14, 2024
1 parent 43614a8 commit 12079c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBitcoin.Tests/NetworkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void NetworkListIsInitialized()
[Trait("UnitTest", "UnitTest")]
public void NetworkListHasNoDuplicates()
{
var uniqueNetworkCount = Network.GetNetworks().DistinctBy(n => n.Name + n.ChainName).Count();
var uniqueNetworkCount = Network.GetNetworks().Select(n => n.Name + n.ChainName).ToHashSet().Count();
Assert.Equal(Network.GetNetworks().Count(), uniqueNetworkCount);
}

Expand Down

0 comments on commit 12079c5

Please sign in to comment.