Skip to content

Commit

Permalink
SecureMemoryTests.cs: Final attempt to fix test on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-lucas6 committed Dec 8, 2024
1 parent 669f8c4 commit a60213e
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 * 131072];
var b = new byte[SecureMemory.PageSize * 81920];

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 a60213e

Please sign in to comment.