Add patterned rename and Move to, and keep settings, selection, and queue speed from resetting.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 18:29:17 +02:00
parent 66ea25993f
commit ff070beba4
62 changed files with 3172 additions and 92 deletions

View File

@@ -214,6 +214,22 @@ public class TransferQueueTests
await ctx.Queue.StopAsync(CancellationToken.None);
}
[Fact]
public async Task Retry_wakes_a_waiting_job_when_the_destination_is_back()
{
await using var ctx = await Harness.CreateAsync();
ctx.Volumes.Reachable = false;
await ctx.Queue.StartAsync(CancellationToken.None);
await ctx.Queue.EnqueueCopyAsync([ctx.File("a.txt")], ctx.Dest);
await WaitUntil(() => ctx.Queue.Snapshot().Any(j => j.Status == TransferStatus.Waiting));
ctx.Volumes.Reachable = true;
ctx.Queue.Retry(ctx.Queue.Snapshot()[0].Id);
await WaitUntil(() => ctx.Queue.Snapshot().Single().Status == TransferStatus.Done);
Assert.Equal(1, ctx.Queue.Snapshot()[0].RetryCount);
await ctx.Queue.StopAsync(CancellationToken.None);
}
[Fact]
public async Task Retry_reruns_a_failed_job()
{