diff --git a/tests/ImageSharp.Tests/TestFile.cs b/tests/ImageSharp.Tests/TestFile.cs index 4429e93da5..8a14a6be2e 100644 --- a/tests/ImageSharp.Tests/TestFile.cs +++ b/tests/ImageSharp.Tests/TestFile.cs @@ -34,7 +34,7 @@ namespace SixLabors.ImageSharp.Tests /// /// Used to ensure image loading is threadsafe. /// - private readonly object syncLock; + private readonly object syncLock = new(); /// /// The image bytes