Skip to content

Commit 34c46c5

Browse files
committed
Added test coverage
1 parent 985f9d5 commit 34c46c5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/ImageSharp.Web.Tests/TestUtilities/AWSS3StorageCacheTestServerFixture.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ protected override void ConfigureCustomServices(IServiceCollection services, IIm
2121
BucketName = TestConstants.AWSBucketName,
2222
AccessKey = TestConstants.AWSAccessKey,
2323
AccessSecret = TestConstants.AWSAccessSecret,
24-
Region = TestConstants.AWSRegion
24+
Region = TestConstants.AWSRegion,
25+
Timeout = TestConstants.AWSTimeout,
2526
}))
2627
.AddProvider(AWSS3StorageImageProviderFactory.Create)
2728
.Configure<AWSS3StorageCacheOptions>(o =>
@@ -31,6 +32,7 @@ protected override void ConfigureCustomServices(IServiceCollection services, IIm
3132
o.AccessKey = TestConstants.AWSAccessKey;
3233
o.AccessSecret = TestConstants.AWSAccessSecret;
3334
o.Region = TestConstants.AWSRegion;
35+
o.Timeout = TestConstants.AWSTimeout;
3436

3537
AWSS3StorageCache.CreateIfNotExists(o, S3CannedACL.Private);
3638
})

tests/ImageSharp.Web.Tests/TestUtilities/TestConstants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ public static class TestConstants
1818
public const string PhysicalTestImage = "http://localhost/" + ImagePath;
1919
public const string AzureTestImage = "http://localhost/" + AzureContainerName + "/" + ImagePath;
2020
public const string AWSTestImage = "http://localhost/" + AWSBucketName + "/" + ImagePath;
21+
public static readonly TimeSpan AWSTimeout = TimeSpan.FromSeconds(10);
2122
}
2223
}

0 commit comments

Comments
 (0)