aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2026-09-06 01:28:02 -0400
committerGitHub <noreply@github.com>2026-09-06 01:28:02 -0400
commit66d038c4034b9e07a4ac39822e4f0080e9a2201a (patch)
tree31db021265d53c7840ea9be659bde0be0957f5a7 /tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs
parent7c463f5fba1d1aefa7505144a22b6526de540319 (diff)
parentccdc69e3b012381f49900aa930d1dc876096cfe6 (diff)
Merge pull request #17762 from Shadowghost/fix-scan-memory-leakHEADmaster
Bound change batches during a scan; keep ffprobe and image saves from failing
Diffstat (limited to 'tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs')
-rw-r--r--tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs b/tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs
index 87efa8fea5..cfc9c9496c 100644
--- a/tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs
+++ b/tests/Jellyfin.Server.Implementations.Tests/Item/SqliteDbTestFixture.cs
@@ -1,4 +1,5 @@
using System;
+using System.Threading;
using Emby.Server.Implementations.Data;
using Jellyfin.Database.Implementations;
using Jellyfin.Database.Implementations.Locking;
@@ -58,6 +59,8 @@ public abstract class SqliteDbTestFixture : IDisposable
{
var factory = new Mock<IDbContextFactory<JellyfinDbContext>>();
factory.Setup(f => f.CreateDbContext()).Returns(CreateDbContext);
+ factory.Setup(f => f.CreateDbContextAsync(It.IsAny<CancellationToken>()))
+ .ReturnsAsync(CreateDbContext);
return factory.Object;
}