Direct2Dを使う試験を直列化して競合を防ぐ
このコミットが含まれているのは:
5ファイル変更
+7
-2
検索条件に一致するファイルはありません
@@ -7,6 +7,7 @@ using ProxyForge.Sources;
|
||||
|
||||
namespace ProxyForge.Tests;
|
||||
|
||||
[Collection("Direct2D")]
|
||||
public sealed class ProxyEncoderTests
|
||||
{
|
||||
const string SoftwareEncoder = FFmpegArguments.SoftwareVideoEncoder;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -6,6 +6,7 @@ using YukkuriMovieMaker.Commons;
|
||||
|
||||
namespace ProxyForge.Tests;
|
||||
|
||||
[Collection("Direct2D")]
|
||||
public sealed class ProxyVideoSourceTests : IDisposable
|
||||
{
|
||||
readonly GraphicsDevices devices = new();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする