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
The following commit(s) were added to refs/heads/master by this push:
new 53674e924 Reduce test fixture size
53674e924 is described below
commit 53674e924c22fc1dca8da42596ba06d1616d00c2
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sun Mar 2 09:06:30 2025 -0500
Reduce test fixture size
- Local build OK
- Failed GH CI
---
src/test/java/org/apache/commons/io/RandomAccessFilesTest.java | 2 +-
src/test/java/org/apache/commons/io/channels/FileChannelsTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/RandomAccessFilesTest.java
b/src/test/java/org/apache/commons/io/RandomAccessFilesTest.java
index 67ace2037..abd6beb6d 100644
--- a/src/test/java/org/apache/commons/io/RandomAccessFilesTest.java
+++ b/src/test/java/org/apache/commons/io/RandomAccessFilesTest.java
@@ -88,7 +88,7 @@ public void testContentEquals(final RandomAccessFileMode
mode) throws IOExceptio
final Path bigFile3 = Files.createTempFile(getClass().getSimpleName(),
"-3.bin");
try {
// This length must match any restriction from the Surefire
configuration.
- final int newLength = 5_000_000;
+ final int newLength = 2_000_000;
final byte[] bytes1 = new byte[newLength];
final byte[] bytes2 = new byte[newLength];
// Make sure bytes1 and bytes2 are different despite the shuffle
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 d8922194b..59658e547 100644
--- a/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
+++ b/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
@@ -70,7 +70,7 @@ public void testContentEquals(final int bufferSize) throws
IOException {
final Path bigFile3 = Files.createTempFile(getClass().getSimpleName(),
"-3.bin");
try {
// This length must match any restriction from the Surefire
configuration.
- final int newLength = 5_000_000;
+ final int newLength = 2_000_000;
final byte[] bytes1 = new byte[newLength];
final byte[] bytes2 = new byte[newLength];
// Make sure bytes1 and bytes2 are different despite the shuffle