From 98948aedc0504a8881e3ffc678c65a3dc87e150b Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Fri, 16 Nov 2018 19:33:38 +0200 Subject: [PATCH] Make sure not to lock the files --- tests/Tests/SKImageTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Tests/SKImageTest.cs b/tests/Tests/SKImageTest.cs index a20f79d0..8ef0fccd 100644 --- a/tests/Tests/SKImageTest.cs +++ b/tests/Tests/SKImageTest.cs @@ -132,7 +132,7 @@ namespace SkiaSharp.Tests { var path = Path.Combine(PathToImages, "color-wheel.png"); - using (var managed = new FileStream(path, FileMode.Open)) + using (var managed = new FileStream(path, FileMode.Open, FileAccess.Read)) using (var image = SKImage.FromEncodedData(managed)) using (var surface = SKSurface.Create(new SKImageInfo(200, 200))) {