From 0d6cc2ad4c7a273f4f12a7c67db45155f1d929d1 Mon Sep 17 00:00:00 2001 From: Eric Bowden Date: Mon, 4 May 2026 09:02:34 -0500 Subject: [PATCH] Changed OfferWithAnOffset test's termOffset to be FRAME_ALIGNMENT-aligned so test does not crash on ARM64 --- src/Adaptive.Aeron.Tests/PublicationTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adaptive.Aeron.Tests/PublicationTest.cs b/src/Adaptive.Aeron.Tests/PublicationTest.cs index c7e473f..e7c7f63 100644 --- a/src/Adaptive.Aeron.Tests/PublicationTest.cs +++ b/src/Adaptive.Aeron.Tests/PublicationTest.cs @@ -461,7 +461,7 @@ public void OfferWithAnOffset() { const int partitionIndex = 2; int termId = TERM_ID_1 + 2; - const int termOffset = 978; + const int termOffset = 992; const int offset = 11; const int length = 23; A.CallTo(() => _publicationLimit.GetVolatile()).Returns(int.MaxValue); @@ -472,7 +472,7 @@ public void OfferWithAnOffset() long position = _publication.Offer(sendBuffer, offset, length, (termBuffer, frameOffset, frameLength) => long.MinValue); - Assert.AreEqual(525330, position); + Assert.AreEqual(525344, position); UnsafeBuffer termBuffer = _termBuffers[partitionIndex]; Assert.AreEqual(long.MinValue, ReservedValue(termBuffer, termOffset)); for (int i = 0; i < length; i++)