From bdd699585ba3890939e43e91060ce7b98afe34d5 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Tue, 7 Feb 2023 08:36:39 +0800 Subject: [PATCH] Test benchmark validation works --- .../Kestrel/perf/Microbenchmarks/InMemoryTransportBenchmark.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Servers/Kestrel/perf/Microbenchmarks/InMemoryTransportBenchmark.cs b/src/Servers/Kestrel/perf/Microbenchmarks/InMemoryTransportBenchmark.cs index 4b59772a3668..b2dc5b850461 100644 --- a/src/Servers/Kestrel/perf/Microbenchmarks/InMemoryTransportBenchmark.cs +++ b/src/Servers/Kestrel/perf/Microbenchmarks/InMemoryTransportBenchmark.cs @@ -63,6 +63,7 @@ public void GlobalSetupPlaintext() ValidateResponseAsync(RequestParsingData.PlaintextTechEmpowerRequest, _plaintextExpectedResponse).Wait(); ValidateResponseAsync(RequestParsingData.PlaintextTechEmpowerPipelinedRequests, _plaintextPipelinedExpectedResponse).Wait(); + throw new Exception("This should break validation."); } private async Task ValidateResponseAsync(byte[] request, string expectedResponse)