Skip to content

Commit 986f351

Browse files
authored
Made Storage live tests more reliable (Azure#49621)
1 parent 6648764 commit 986f351

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

sdk/storage/Azure.Storage.Blobs/assets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/storage/Azure.Storage.Blobs",
5-
"Tag": "net/storage/Azure.Storage.Blobs_723995cc64"
5+
"Tag": "net/storage/Azure.Storage.Blobs_5d1e8e8cd5"
66
}

sdk/storage/Azure.Storage.Blobs/tests/ImmutableStorageWithVersioningTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Azure.Storage.Sas;
1919
using Azure.Storage.Test;
2020
using Azure.Storage.Test.Shared;
21+
using Azure.Storage.Tests.Shared;
2122
using NUnit.Framework;
2223

2324
namespace Azure.Storage.Blobs.Test
@@ -483,7 +484,7 @@ public async Task SetImmutibilityPolicyAsync_IfModifiedSince_Failed()
483484

484485
BlobImmutabilityPolicy immutabilityPolicy = new BlobImmutabilityPolicy
485486
{
486-
ExpiresOn = Recording.UtcNow.AddSeconds(1),
487+
ExpiresOn = Recording.UtcNow.AddMinutes(5),
487488
PolicyMode = BlobImmutabilityPolicyMode.Locked
488489
};
489490

sdk/storage/Azure.Storage.Blobs/tests/ManagedDiskTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void Setup()
3838
}
3939

4040
[Test]
41+
[RetryOnException(5, typeof(RequestFailedException))]
4142
public async Task CanDiffPagesBetweenSnapshots()
4243
{
4344
// Arrange

0 commit comments

Comments
 (0)