Browse Source

no, we still can't cache images for 32bit tests

af/octree-no-pixelmap
Anton Firszov 6 years ago
parent
commit
31fe2b3d22
  1. 5
      tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs

5
tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs

@ -151,6 +151,11 @@ namespace SixLabors.ImageSharp.Tests
{
Guard.NotNull(decoder, nameof(decoder));
if (!TestEnvironment.Is64BitProcess)
{
return this.LoadImage(decoder);
}
int bufferCapacity = this.Configuration.MemoryAllocator.GetBufferCapacityInBytes();
var key = new Key(this.PixelType, this.FilePath, bufferCapacity, decoder);

Loading…
Cancel
Save