Skip to content

Commit 447fac9

Browse files
committed
Avoid delays in async and cancellation tests
1 parent a4557f5 commit 447fac9

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Transformers/DocumentTransformerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ public async Task DocumentTransformer_ExecutesAsynchronously()
316316
Assert.Equal("First Second Third", document.Info.Title);
317317
});
318318

319-
await Task.Yield();
320319
tcs1.TrySetResult();
321320

322321
await documentTask;

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Transformers/OperationTransformerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,6 @@ public async Task OperationTransformer_ExecutesAsynchronously()
648648
Assert.Equal("First Second Third", operation.Description);
649649
});
650650

651-
await Task.Yield();
652651
tcs1.TrySetResult();
653652

654653
await documentTask;

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Transformers/SchemaTransformerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,6 @@ public async Task SchemaTransformer_ExecutesAsynchronously()
927927
Assert.Equal("First Second Third", schema.Description);
928928
});
929929

930-
await Task.Yield();
931930
tcs1.TrySetResult();
932931

933932
await documentTask;

0 commit comments

Comments
 (0)