Skip to content

Commit

Permalink
SecureMemoryTests.cs: Try to fix another GitHub Actions test failure.
Browse files Browse the repository at this point in the history
Not enough memory was being allocated to fail on macOS. Hopefully this is enough.
  • Loading branch information
samuel-lucas6 committed Dec 8, 2024
1 parent 861f3f1 commit 669f8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geralt.Tests/SecureMemoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OutOfMemoryException>(() => SecureMemory.LockMemory(b));
// This test fails on Linux/macOS - munlock() must not return an error despite no locking taking place
Expand Down

0 comments on commit 669f8c4

Please sign in to comment.