Skip to content

Commit

Permalink
Set defaultConnectionLimit for tests (#9088)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored Dec 11, 2019
1 parent 22d1e49 commit fd9b320
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ namespace Azure.Storage.Test.Shared
{
public abstract class StorageTestBase : RecordedTestBase
{
static StorageTestBase()
{
// https://github.com/Azure/azure-sdk-for-net/issues/9087
// .NET framework defaults to 2, which causes issues for the parallel upload/download tests.
#if !NETCOREAPP
ServicePointManager.DefaultConnectionLimit = 100;
#endif
}

public StorageTestBase(bool async, RecordedTestMode? mode = null)
: base(async, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
{
Expand Down

0 comments on commit fd9b320

Please sign in to comment.