Skip to content

Commit a21519e

Browse files
committed
whoops
1 parent b306dcb commit a21519e

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/MaxRequestBodySizeTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public MaxRequestBodySizeTests(PublishedSitesFixture fixture) : base(fixture)
1919
}
2020

2121
[ConditionalFact]
22+
[RequiresNewHandler]
2223
public async Task MaxRequestBodySizeE2EWorks()
2324
{
2425
var deploymentParameters = Fixture.GetBaseDeploymentParameters();

src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public async Task RequestBodyTooLargeChunked()
191191
{
192192
while (true)
193193
{
194-
await ctx.Request.Body.ReadAsync(new byte[2000]);
194+
var num = await ctx.Request.Body.ReadAsync(new byte[2000]);
195195
}
196196
}
197197
catch (BadHttpRequestException ex)
@@ -205,7 +205,7 @@ public async Task RequestBodyTooLargeChunked()
205205
{
206206
await connection.Send(
207207
"POST / HTTP/1.1",
208-
"Content-Length: 1001",
208+
"Transfer-Encoding: chunked",
209209
"Host: localhost",
210210
"",
211211
"1001",

src/Servers/IIS/IIS/test/testassets/InProcessForwardsCompatWebSite/InProcessWebSite.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<PropertyGroup>
66
<TargetFramework>netcoreapp3.0</TargetFramework>
77
<TestAssetOutputName>InProcessForwardsCompatWebSite</TestAssetOutputName>
8+
<DefineConstants>FORWARDCOMPAT</DefineConstants>
89
</PropertyGroup>
910

1011
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">

src/Servers/IIS/IIS/test/testassets/InProcessWebSite/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public static int Main(string[] args)
100100
case "ConsoleWriteStartServer":
101101
Console.WriteLine("TEST MESSAGE");
102102
return StartServer();
103+
#if !FORWARDCOMPAT
103104
case "DecreaseRequestLimit":
104105
{
105106
var host = new WebHostBuilder()
@@ -119,6 +120,7 @@ public static int Main(string[] args)
119120
host.Run();
120121
break;
121122
}
123+
#endif
122124
default:
123125
return StartServer();
124126

0 commit comments

Comments
 (0)