From 2964becc21c4dd2ed1c18ba679399edc93ec95ba Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 27 Jan 2023 09:13:54 +1000 Subject: [PATCH] Increase sleep time for slow VMs --- .../Memory/Allocators/MemoryDiagnosticsTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/Memory/Allocators/MemoryDiagnosticsTests.cs b/tests/ImageSharp.Tests/Memory/Allocators/MemoryDiagnosticsTests.cs index 1876d2647..44117f938 100644 --- a/tests/ImageSharp.Tests/Memory/Allocators/MemoryDiagnosticsTests.cs +++ b/tests/ImageSharp.Tests/Memory/Allocators/MemoryDiagnosticsTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Six Labors. +// Copyright (c) Six Labors. // Licensed under the Six Labors Split License. using System.Runtime.CompilerServices; @@ -94,7 +94,7 @@ public class MemoryDiagnosticsTests if (subscribeLeakHandle) { // Make sure at least some of the leak callbacks have time to complete on the ThreadPool - Thread.Sleep(200); + Thread.Sleep(500); Assert.True(leakCounter > 3, $"leakCounter did not count enough leaks ({leakCounter} only)"); }