Skip to content

Commit

Permalink
Merge pull request aeron-io#1369 from JPWatson/alignment
Browse files Browse the repository at this point in the history
Align term buffer in PublicationTest
  • Loading branch information
JPWatson authored Oct 19, 2022
2 parents 8b0ba8b + 41da262 commit 6eedf63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aeron-client/src/test/java/io/aeron/PublicationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import static java.nio.ByteBuffer.allocate;
import static java.nio.ByteOrder.LITTLE_ENDIAN;
import static org.agrona.BitUtil.align;
import static org.agrona.BufferUtil.allocateDirectAligned;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;

Expand Down Expand Up @@ -92,7 +93,7 @@ void setUp()

for (int i = 0; i < PARTITION_COUNT; i++)
{
termBuffers[i] = new UnsafeBuffer(allocate(TERM_LENGTH));
termBuffers[i] = new UnsafeBuffer(allocateDirectAligned(TERM_LENGTH, FRAME_ALIGNMENT));
}

publication = new ConcurrentPublication(
Expand Down

0 comments on commit 6eedf63

Please sign in to comment.