From 31fe2b3d22cfd0ed05f41e349803c6dfc22df6f5 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 8 Feb 2020 04:09:50 +0100 Subject: [PATCH] no, we still can't cache images for 32bit tests --- .../TestUtilities/ImageProviders/FileProvider.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs index 0427b3732..d94e21609 100644 --- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs +++ b/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);