Add queued FFmpeg conversion and finish splitting the window from the host.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -61,6 +61,21 @@ public class OperationProfileServiceTests
|
||||
Assert.Empty(ctx.Queue.Snapshot());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Convert_auto_run_is_ignored()
|
||||
{
|
||||
await using var ctx = await ProfileHarness.CreateAsync();
|
||||
ctx.Profile.DoConvert = true;
|
||||
ctx.Profile.AutoRun = true;
|
||||
await ctx.Profiles.SaveAsync(ctx.Profile);
|
||||
Assert.False((await ctx.Store.OperationProfiles.GetAsync(ctx.Profile.Id))!.CanAutoRun);
|
||||
ctx.Volumes.Reachable = false;
|
||||
await ctx.Profiles.TryAutoRunAsync();
|
||||
ctx.Volumes.Reachable = true;
|
||||
await ctx.Profiles.TryAutoRunAsync();
|
||||
Assert.Empty(ctx.Queue.Snapshot());
|
||||
}
|
||||
|
||||
private static async Task WaitUntil(Func<bool> condition)
|
||||
{
|
||||
var limit = DateTime.UtcNow + TimeSpan.FromSeconds(4);
|
||||
@@ -119,7 +134,8 @@ public class OperationProfileServiceTests
|
||||
enumerator,
|
||||
git,
|
||||
new NeverHydrate(),
|
||||
new FakeArchiveExecutor());
|
||||
new FakeArchiveExecutor(),
|
||||
new FakeConversionExecutor());
|
||||
return new ProfileHarness
|
||||
{
|
||||
Profiles = profiles,
|
||||
|
||||
Reference in New Issue
Block a user