Fix nullable warnings and update CI/CD for beta branch

This commit is contained in:
2026-01-30 11:38:49 -05:00
parent fe886fc44b
commit ad1b58f5bd
6 changed files with 17 additions and 11 deletions

View File

@@ -85,7 +85,7 @@ public class DeezerDownloadServiceTests : IDisposable
var serviceProviderMock = new Mock<IServiceProvider>();
serviceProviderMock.Setup(sp => sp.GetService(typeof(allstarr.Services.Subsonic.PlaylistSyncService)))
.Returns(null);
.Returns(null!);
return new DeezerDownloadService(
_httpClientFactoryMock.Object,

View File

@@ -107,8 +107,8 @@ public class JellyfinProxyServiceTests
Assert.True(captured!.Headers.Contains("Authorization"));
var authHeader = captured.Headers.GetValues("Authorization").First();
Assert.Contains("MediaBrowser", authHeader);
Assert.Contains(_settings.ApiKey, authHeader);
Assert.Contains(_settings.ClientName, authHeader);
Assert.Contains(_settings.ApiKey!, authHeader);
Assert.Contains(_settings.ClientName!, authHeader);
}
[Fact]

View File

@@ -88,7 +88,7 @@ public class QobuzDownloadServiceTests : IDisposable
var serviceProviderMock = new Mock<IServiceProvider>();
serviceProviderMock.Setup(sp => sp.GetService(typeof(allstarr.Services.Subsonic.PlaylistSyncService)))
.Returns(null);
.Returns(null!);
return new QobuzDownloadService(
_httpClientFactoryMock.Object,