From 2b80b9fa0118647fb4eac6636d912f5b312e8540 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Thu, 28 Mar 2019 11:42:45 -0700 Subject: [PATCH] Attempt to make MaxRequestBufferSizeTests.LargeUpload less flaky (#8582) This is for the release/2.1 branch, but should probably be ported forward to master so the test can be unskipped. Fixes https://github.com/aspnet/AspNetCore-Internal/issues/1775 (hopefully) See https://github.com/aspnet/AspNetCore-Internal/issues/1970 for the master version. --- .../test/FunctionalTests/MaxRequestBufferSizeTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Servers/Kestrel/test/FunctionalTests/MaxRequestBufferSizeTests.cs b/src/Servers/Kestrel/test/FunctionalTests/MaxRequestBufferSizeTests.cs index 64522f2202..4161eba5d5 100644 --- a/src/Servers/Kestrel/test/FunctionalTests/MaxRequestBufferSizeTests.cs +++ b/src/Servers/Kestrel/test/FunctionalTests/MaxRequestBufferSizeTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; @@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests { public class MaxRequestBufferSizeTests : LoggedTest { - private const int _dataLength = 20 * 1024 * 1024; + private const int _dataLength = 100 * 1024 * 1024; private static readonly string[] _requestLines = new[] { @@ -277,6 +277,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests } options.Limits.MinRequestBodyDataRate = null; + options.Limits.MaxRequestBodySize = _dataLength; }) .UseContentRoot(Directory.GetCurrentDirectory()) .Configure(app => app.Run(async context =>