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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user