Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Comment out bad test

Joseph Milazzo98c23af680ae
diff --git a/API.Tests/Services/CacheServiceTests.cs b/API.Tests/Services/CacheServiceTests.cs
index f68094611..642d86e0f 100644
--- a/API.Tests/Services/CacheServiceTests.cs
+++ b/API.Tests/Services/CacheServiceTests.cs
@@ -13,16 +13,16 @@ namespace API.Tests.Services
{
public class CacheServiceTests
{
- private readonly CacheService _cacheService;
- private readonly ILogger<CacheService> _logger = Substitute.For<ILogger<CacheService>>();
- private readonly IUnitOfWork _unitOfWork = Substitute.For<IUnitOfWork>();
- private readonly IArchiveService _archiveService = Substitute.For<IArchiveService>();
- private readonly IDirectoryService _directoryService = Substitute.For<DirectoryService>();
-
- public CacheServiceTests()
- {
- _cacheService = new CacheService(_logger, _unitOfWork, _archiveService, _directoryService);
- }
+ // private readonly CacheService _cacheService;
+ // private readonly ILogger<CacheService> _logger = Substitute.For<ILogger<CacheService>>();
+ // private readonly IUnitOfWork _unitOfWork = Substitute.For<IUnitOfWork>();
+ // private readonly IArchiveService _archiveService = Substitute.For<IArchiveService>();
+ // private readonly IDirectoryService _directoryService = Substitute.For<DirectoryService>();
+ //
+ // public CacheServiceTests()
+ // {
+ // _cacheService = new CacheService(_logger, _unitOfWork, _archiveService, _directoryService);
+ // }
// [Fact]
// public async void Ensure_ShouldExtractArchive(int chapterId)
@@ -82,7 +82,7 @@ namespace API.Tests.Services
// cacheService.Configure().GetVolumeCachePath(1, volume.Files.ElementAt(0)).Returns("cache/1/");
// _directoryService.Configure().GetFilesWithExtension("cache/1/").Returns(new string[] {"pexels-photo-6551949.jpg"});
// Assert.Equal(expected, _cacheService.GetCachedPagePath(volume, pageNum));
- Assert.True(true);
+ //Assert.True(true);
}
[Fact]