From d346fb0a562fbdb2f72891fc97a1e3d63c280202 Mon Sep 17 00:00:00 2001 From: Kamil Sobol <61715331+kasobol-msft@users.noreply.github.com> Date: Thu, 3 Dec 2020 18:15:36 -0800 Subject: [PATCH] [Storage] Increase network timeout in tests. (#17323) Sometimes tests experience slow transfer rate which makes tests pushing larger payloads flaky. This is attempt to give them more time to complete transfer and see if this resolves that problem. --- sdk/storage/Azure.Storage.Blobs/tests/BlobTestBase.cs | 3 ++- .../Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs | 3 ++- sdk/storage/tests.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs/tests/BlobTestBase.cs b/sdk/storage/Azure.Storage.Blobs/tests/BlobTestBase.cs index 9c4fd0fe97381..95510901d544e 100644 --- a/sdk/storage/Azure.Storage.Blobs/tests/BlobTestBase.cs +++ b/sdk/storage/Azure.Storage.Blobs/tests/BlobTestBase.cs @@ -74,7 +74,8 @@ public BlobClientOptions GetOptions(bool parallelRange = false) Mode = RetryMode.Exponential, MaxRetries = Storage.Constants.MaxReliabilityRetries, Delay = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 0.01 : 1), - MaxDelay = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 0.1 : 60) + MaxDelay = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 0.1 : 60), + NetworkTimeout = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 100 : 200), }, Transport = GetTransport() }; diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs index 6a4cc5522338d..abfec1bf3a1c1 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs @@ -69,7 +69,8 @@ public DataLakeClientOptions GetOptions(bool parallelRange = false) Mode = RetryMode.Exponential, MaxRetries = Constants.MaxReliabilityRetries, Delay = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 0.01 : 1), - MaxDelay = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 0.1 : 60) + MaxDelay = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 0.1 : 60), + NetworkTimeout = TimeSpan.FromSeconds(Mode == RecordedTestMode.Playback ? 100 : 200), }, Transport = GetTransport() }; diff --git a/sdk/storage/tests.yml b/sdk/storage/tests.yml index 8ac4f5200e265..3ee45fe51ffd5 100644 --- a/sdk/storage/tests.yml +++ b/sdk/storage/tests.yml @@ -5,7 +5,7 @@ extends: parameters: ServiceDirectory: storage BuildInParallel: true - TimeoutInMinutes: 90 + TimeoutInMinutes: 180 Location: canadacentral Clouds: Preview TestSetupSteps: