Skip to content

Commit ef7e2ba

Browse files
Update test/DurableTask.AzureStorage.Tests/AzureStorageScaleTests.cs
Co-authored-by: David Justo <david.justo.1996@gmail.com>
1 parent c0b2e73 commit ef7e2ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/DurableTask.AzureStorage.Tests/AzureStorageScaleTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ await TestHelpers.WaitFor(
615615
// Worker 1 completes the work item
616616
await service1.CompleteTaskOrchestrationWorkItemAsync(workItem1, runtimeState, new List<TaskMessage>(), new List<TaskMessage>(), new List<TaskMessage>(), null, null);
617617
// Now worker 2 attempts to complete the same work item. Since this is not the first work item for the orchestration, now an etag exists for the OrchestrationSession, and the exception
618-
// that is thrown will be a precondition failed (since the etag doesn't match after worker 1 already completed the work item and updated the orchestration history).
618+
// that is thrown will be "precondition failed" as the Etag is stale after worker 1 completed the work item.
619619
exception = await Assert.ThrowsExceptionAsync<SessionAbortedException>(async () =>
620620
await service2.CompleteTaskOrchestrationWorkItemAsync(workItem2, runtimeState, new List<TaskMessage>(), new List<TaskMessage>(), new List<TaskMessage>(), null, null)
621621
);

0 commit comments

Comments
 (0)