diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-02-20 21:51:15 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-02-20 21:51:15 +0100 |
| commit | a5bfeb28aa2c92e6e58f5f00e5651807794ac8ef (patch) | |
| tree | 082e29ba90153f78477b0f897b3d694ca8b1783a /tests/Jellyfin.Networking.Tests | |
| parent | a5f16136eb171b17b1e1ed661e9aeb017522ce89 (diff) | |
Apply review suggestions
Diffstat (limited to 'tests/Jellyfin.Networking.Tests')
| -rw-r--r-- | tests/Jellyfin.Networking.Tests/NetworkParseTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Jellyfin.Networking.Tests/NetworkParseTests.cs b/tests/Jellyfin.Networking.Tests/NetworkParseTests.cs index d51ce19d7..8b7df0470 100644 --- a/tests/Jellyfin.Networking.Tests/NetworkParseTests.cs +++ b/tests/Jellyfin.Networking.Tests/NetworkParseTests.cs @@ -203,7 +203,7 @@ namespace Jellyfin.Networking.Tests using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>()); NetworkManager.MockNetworkSettings = string.Empty; - _ = nm.TryParseInterface(result, out List<IPData>? resultObj); + _ = nm.TryParseInterface(result, out IReadOnlyList<IPData>? resultObj); // Check to see if dns resolution is working. If not, skip test. _ = NetworkExtensions.TryParseHost(source, out var host); @@ -266,7 +266,7 @@ namespace Jellyfin.Networking.Tests using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>()); NetworkManager.MockNetworkSettings = string.Empty; - if (nm.TryParseInterface(result, out List<IPData>? resultObj) && resultObj is not null) + if (nm.TryParseInterface(result, out IReadOnlyList<IPData>? resultObj) && resultObj is not null) { // Parse out IPAddresses so we can do a string comparison (ignore subnet masks). result = resultObj.First().Address.ToString(); |
