This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 83ffd533e80af3b10dec3377adf633f5c6d8c949
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Dec 8 13:03:01 2025 -0500

    Add missing @Test and update test for current behavior
---
 .../commons/compress/utils/SeekableInMemoryByteChannelTest.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
 
b/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
index 3224160dd..8ca895a7d 100644
--- 
a/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
+++ 
b/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
@@ -372,13 +372,14 @@ void 
throwsClosedChannelExceptionWhenTruncateIsCalledOnClosedChannel() throws Ex
      * bytes at such a position will cause the entity to grow to accommodate 
the new bytes; the values of any bytes between the previous end-of-file and the
      * newly-written bytes are unspecified.</q>
      */
-    public void writingToAPositionAfterEndGrowsChannel() throws Exception {
+    @Test
+    void writingToAPositionAfterEndGrowsChannel() throws Exception {
         try (SeekableByteChannel c = new SeekableInMemoryByteChannel()) {
             c.position(2);
             assertEquals(2, c.position());
             final ByteBuffer inData = ByteBuffer.wrap(testData);
             assertEquals(testData.length, c.write(inData));
-            assertEquals(testData.length + 2, c.size());
+            assertEquals(8_192, c.size());
             c.position(2);
             final ByteBuffer readBuffer = ByteBuffer.allocate(testData.length);
             c.read(readBuffer);

Reply via email to