aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Networking.Tests
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2023-02-20 21:51:15 +0100
committerShadowghost <Ghost_of_Stone@web.de>2023-02-20 21:51:15 +0100
commita5bfeb28aa2c92e6e58f5f00e5651807794ac8ef (patch)
tree082e29ba90153f78477b0f897b3d694ca8b1783a /tests/Jellyfin.Networking.Tests
parenta5f16136eb171b17b1e1ed661e9aeb017522ce89 (diff)
Apply review suggestions
Diffstat (limited to 'tests/Jellyfin.Networking.Tests')
-rw-r--r--tests/Jellyfin.Networking.Tests/NetworkParseTests.cs4
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();