From 669f8c476a32bf4a36b937fba9fc50997008f22e Mon Sep 17 00:00:00 2001 From: Samuel Lucas <63159663+samuel-lucas6@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:52:43 +0000 Subject: [PATCH] SecureMemoryTests.cs: Try to fix another GitHub Actions test failure. Not enough memory was being allocated to fail on macOS. Hopefully this is enough. --- src/Geralt.Tests/SecureMemoryTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geralt.Tests/SecureMemoryTests.cs b/src/Geralt.Tests/SecureMemoryTests.cs index ceb6a96..906acd5 100644 --- a/src/Geralt.Tests/SecureMemoryTests.cs +++ b/src/Geralt.Tests/SecureMemoryTests.cs @@ -99,7 +99,7 @@ public void LockMemory_UnlockAndZeroMemory_Invalid(int bufferSize) [TestMethod] public void LockMemory_UnlockAndZeroMemory_InvalidOperation() { - var b = new byte[SecureMemory.PageSize * 65536]; + var b = new byte[SecureMemory.PageSize * 131072]; Assert.ThrowsException(() => SecureMemory.LockMemory(b)); // This test fails on Linux/macOS - munlock() must not return an error despite no locking taking place