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-io.git

commit a7cf506dd5ca19d522c2a87470ad94f126a5537b
Author: Gary D. Gregory <[email protected]>
AuthorDate: Mon Mar 3 07:52:09 2025 -0500

    Add missing argument in test
---
 src/test/java/org/apache/commons/io/channels/FileChannelsTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java 
b/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
index 3ca0a2ecc..fecc70a58 100644
--- a/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
+++ b/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
@@ -105,7 +105,7 @@ public void testContentEquals(
             final int last = bytes3.length - 1;
             bytes3[last] = reverse(bytes3[last]);
             Files.write(bigFile3, bytes3);
-            try (FileChannel fc1 = open(bigFile1, null); FileChannel fc3 = 
open(bigFile3, fileChannelType2)) {
+            try (FileChannel fc1 = open(bigFile1, fileChannelType1); 
FileChannel fc3 = open(bigFile3, fileChannelType2)) {
                 assertFalse(FileChannels.contentEquals(fc1, fc3, bufferSize));
                 assertFalse(FileChannels.contentEquals(reset(fc3), reset(fc1), 
bufferSize));
                 // Test just the last byte

Reply via email to