aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Networking.Tests
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2022-12-07 17:41:32 +0100
committerShadowghost <Ghost_of_Stone@web.de>2022-12-07 17:41:32 +0100
commit3f6354cdb832560ec811f1766666dd9ca1f2a208 (patch)
tree7586da49dd054c59a2d86270238f787d9a822349 /tests/Jellyfin.Networking.Tests
parent2c86bd1875e6e85d5867618e992d850453dae663 (diff)
Fix .NET 7 compatibility
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 86b2ab21a..241d2314b 100644
--- a/tests/Jellyfin.Networking.Tests/NetworkParseTests.cs
+++ b/tests/Jellyfin.Networking.Tests/NetworkParseTests.cs
@@ -207,7 +207,7 @@ namespace Jellyfin.Networking.Tests
// Check to see if dns resolution is working. If not, skip test.
_ = NetworkExtensions.TryParseHost(source, out var host);
- if (resultObj != null && host.Length > 0)
+ if (resultObj is not null && host.Length > 0)
{
result = resultObj.First().Address.ToString();
var intf = nm.GetBindInterface(source, out _);
@@ -265,7 +265,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 != null)
+ if (nm.TryParseInterface(result, out List<IPData>? resultObj) && resultObj is not null)
{
// Parse out IPAddresses so we can do a string comparison (ignore subnet masks).
result = resultObj.First().Address.ToString();