Fix debug builds (#8909)
This commit is contained in:
parent
39289ae814
commit
3462676a8f
|
@ -1301,7 +1301,8 @@ namespace Jellyfin.Networking.Manager
|
|||
var extResult = _interfaceAddresses
|
||||
.Exclude(_bindExclusions, false)
|
||||
.Where(p => !IsInLocalNetwork(p))
|
||||
.OrderBy(p => p.Tag);
|
||||
.OrderBy(p => p.Tag)
|
||||
.ToList();
|
||||
|
||||
if (extResult.Any())
|
||||
{
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace Jellyfin.Extensions.Tests.Json.Converters
|
|||
Assert.Equal(json, res);
|
||||
}
|
||||
|
||||
private class TestContainer
|
||||
private sealed class TestContainer
|
||||
{
|
||||
public TestContainer(CollectionTypeOptions? collectionType)
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace Jellyfin.MediaEncoding.Tests
|
|||
Assert.Equal(valid, _encoderValidator.ValidateVersionInternal(versionOutput));
|
||||
}
|
||||
|
||||
private class GetFFmpegVersionTestData : TheoryData<string, Version?>
|
||||
private sealed class GetFFmpegVersionTestData : TheoryData<string, Version?>
|
||||
{
|
||||
public GetFFmpegVersionTestData()
|
||||
{
|
||||
|
|
|
@ -186,7 +186,7 @@ namespace Jellyfin.Model.Tests.Entities
|
|||
Assert.Null(nullProvider.ProviderIds);
|
||||
}
|
||||
|
||||
private class ProviderIdsExtensionsTestsObject : IHasProviderIds
|
||||
private sealed class ProviderIdsExtensionsTestsObject : IHasProviderIds
|
||||
{
|
||||
public static readonly ProviderIdsExtensionsTestsObject Empty = new ProviderIdsExtensionsTestsObject();
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ namespace Jellyfin.Server.Implementations.Tests.Data
|
|||
Assert.Equal(expected, SqliteItemRepository.SerializeProviderIds(values));
|
||||
}
|
||||
|
||||
private class ProviderIdsExtensionsTestsObject : IHasProviderIds
|
||||
private sealed class ProviderIdsExtensionsTestsObject : IHasProviderIds
|
||||
{
|
||||
public Dictionary<string, string> ProviderIds { get; set; } = new Dictionary<string, string>();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Jellyfin.Server.Implementations.Tests.HttpServer
|
|||
Assert.Throws<JsonException>(() => con.DeserializeWebSocketMessage(new ReadOnlySequence<byte>(bytes), out var bytesConsumed));
|
||||
}
|
||||
|
||||
internal class BufferSegment : ReadOnlySequenceSegment<byte>
|
||||
internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
|
||||
{
|
||||
public BufferSegment(Memory<byte> memory)
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace Jellyfin.Server.Implementations.Tests.Library
|
|||
Assert.NotNull(episodeResolver.Resolve(itemResolveArgs));
|
||||
}
|
||||
|
||||
private class EpisodeResolverMock : EpisodeResolver
|
||||
private sealed class EpisodeResolverMock : EpisodeResolver
|
||||
{
|
||||
public EpisodeResolverMock(ILogger<EpisodeResolver> logger, NamingOptions namingOptions) : base(logger, namingOptions)
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Jellyfin.Server.Implementations.Tests.Sorting
|
|||
Assert.Equal(-expected, cmp.Compare(y, x));
|
||||
}
|
||||
|
||||
private class EpisodeBadData : TheoryData<BaseItem?, BaseItem?>
|
||||
private sealed class EpisodeBadData : TheoryData<BaseItem?, BaseItem?>
|
||||
{
|
||||
public EpisodeBadData()
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ namespace Jellyfin.Server.Implementations.Tests.Sorting
|
|||
}
|
||||
}
|
||||
|
||||
private class EpisodeTestData : TheoryData<BaseItem, BaseItem, int>
|
||||
private sealed class EpisodeTestData : TheoryData<BaseItem, BaseItem, int>
|
||||
{
|
||||
public EpisodeTestData()
|
||||
{
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Jellyfin.Server.Integration.Tests
|
|||
headers.Add(AuthHeaderName, DummyAuthHeader + $", Token={accessToken}");
|
||||
}
|
||||
|
||||
private class AuthenticationResultDto
|
||||
private sealed class AuthenticationResultDto
|
||||
{
|
||||
public string AccessToken { get; set; } = string.Empty;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user