Merge branch 'claudedo/5c80a0aba5d9468a96cf809fc7a6e7a1'
This commit is contained in:
@@ -366,6 +366,23 @@ public sealed class BatchMcpToolsTests : IDisposable
|
||||
Assert.True(json.Length < 25_000, $"response was {json.Length} chars, expected < 25000");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task BatchGetTasks_QueuedWithUnmetDependsOn_ReportsBlocked()
|
||||
{
|
||||
var listId = await SeedListAsync();
|
||||
var predecessor = await SeedTaskAsync(listId, "predecessor", TaskStatus.Idle);
|
||||
var task = await SeedTaskAsync(listId, "blocked", TaskStatus.Queued);
|
||||
task.DependsOnTaskId = predecessor.Id;
|
||||
await _tasks.UpdateAsync(task);
|
||||
var sut = BuildSut();
|
||||
|
||||
var results = await sut.BatchGetTasks(new[] { task.Id }, cancellationToken: CancellationToken.None);
|
||||
|
||||
var found = results.Single(r => r.Id == task.Id);
|
||||
Assert.True(found.Task!.Blocked);
|
||||
Assert.Contains(predecessor.Id, found.Task!.BlockedReason);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task BatchDeleteTasks_RunningTask_ReportedNotOk_OthersDeleted()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user