diff options
author | James Newton-King <james@newtonking.com> | 2022-08-04 05:30:19 +0300 |
---|---|---|
committer | James Newton-King <james@newtonking.com> | 2022-08-04 05:30:19 +0300 |
commit | 74426835f30525139d725a0e5b8aed4a3b97fc4a (patch) | |
tree | be8fed6c0303b88717ab251656f4c8fe1760cc4e | |
parent | 13cff38ab780da71f8e25d222a635e784d858460 (diff) |
Commentjamesnk/requestaborted
-rw-r--r-- | src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs | 2 |
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; |