Direct2Dを使う試験を直列化して競合を防ぐ

このコミットが含まれているのは:
routersys committed 2026-09-13 17:52:30 +09:00
1 親 cc54fa0401
コミット fca9781341
5ファイル変更
+7 -2

検索条件に一致するファイルはありません

+1
ファイルの表示
@@ -7,6 +7,7 @@ using ProxyForge.Sources;
namespace ProxyForge.Tests;
[Collection("Direct2D")]
public sealed class ProxyEncoderTests
{
const string SoftwareEncoder = FFmpegArguments.SoftwareVideoEncoder;
+1
ファイルの表示
@@ -3,6 +3,7 @@ using YukkuriMovieMaker.Commons;
namespace ProxyForge.Tests;
[Collection("Direct2D")]
public sealed class ProxyFrameRendererTests
{
static (byte Blue, byte Green, byte Red, byte Alpha) Bgra(int blue, int green, int red, int alpha)
+3 -2
ファイルの表示
@@ -7,6 +7,7 @@ using YukkuriMovieMaker.Commons;
namespace ProxyForge.Tests;
[Collection("Direct2D")]
public sealed class ProxySourceProviderTests : IDisposable
{
readonly string root = Path.Combine(Path.GetTempPath(), "ProxyForgeTests", Guid.NewGuid().ToString("N"));
@@ -278,7 +279,7 @@ public sealed class ProxySourceProviderTests : IDisposable
Assert.False(proxy.IsProxy);
release.SetResult();
await pending.WhenIdleAsync();
for (var attempt = 0; attempt < 200 && !proxy.IsProxy; attempt++)
for (var attempt = 0; attempt < 500 && !proxy.IsProxy; attempt++)
{
proxy.Update(TimeSpan.Zero);
await Task.Delay(10, TestContext.Current.CancellationToken);
@@ -306,7 +307,7 @@ public sealed class ProxySourceProviderTests : IDisposable
using var source = CreateProvider().Create(context, path);
var proxy = Assert.IsType<ProxyVideoSource>(source);
await queue.WhenIdleAsync();
for (var attempt = 0; attempt < 200 && !proxy.IsProxy; attempt++)
for (var attempt = 0; attempt < 500 && !proxy.IsProxy; attempt++)
{
proxy.Update(TimeSpan.FromSeconds(1));
await Task.Delay(10, TestContext.Current.CancellationToken);
+1
ファイルの表示
@@ -7,6 +7,7 @@ using YukkuriMovieMaker.Commons;
namespace ProxyForge.Tests;
[Collection("Direct2D")]
public sealed class ProxyUpgradeLoaderTests : IDisposable
{
readonly string root = Path.Combine(Path.GetTempPath(), "ProxyForgeTests", Guid.NewGuid().ToString("N"));
+1
ファイルの表示
@@ -6,6 +6,7 @@ using YukkuriMovieMaker.Commons;
namespace ProxyForge.Tests;
[Collection("Direct2D")]
public sealed class ProxyVideoSourceTests : IDisposable
{
readonly GraphicsDevices devices = new();