Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Newton-King <james@newtonking.com>2022-08-04 05:30:19 +0300
committerJames Newton-King <james@newtonking.com>2022-08-04 05:30:19 +0300
commit74426835f30525139d725a0e5b8aed4a3b97fc4a (patch)
treebe8fed6c0303b88717ab251656f4c8fe1760cc4e
parent13cff38ab780da71f8e25d222a635e784d858460 (diff)
-rw-r--r--src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs b/src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs
index 541e6edbdb..fff5268a4b 100644
--- a/src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs
+++ b/src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs
@@ -508,6 +508,8 @@ public class RequestTests : LoggedTest
beforeAbort = context.RequestAborted;
context.Abort();
+
+ // Abort doesn't happen inline. Need to wait for it to complete before reading token again.
await abortedTcs.Task;
afterAbort = context.RequestAborted;