This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new db3796fb6 test(java): avoid run heavy RegressionTest always (#5721)
db3796fb6 is described below
commit db3796fb64dd3c0fa88972c8bb0d925614fe6f81
Author: tison <[email protected]>
AuthorDate: Mon Mar 10 16:37:45 2025 +0800
test(java): avoid run heavy RegressionTest always (#5721)
Signed-off-by: tison <[email protected]>
---
.../test/java/org/apache/opendal/test/behavior/RegressionTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/bindings/java/src/test/java/org/apache/opendal/test/behavior/RegressionTest.java
b/bindings/java/src/test/java/org/apache/opendal/test/behavior/RegressionTest.java
index 2a9721b69..fe6172e0d 100644
---
a/bindings/java/src/test/java/org/apache/opendal/test/behavior/RegressionTest.java
+++
b/bindings/java/src/test/java/org/apache/opendal/test/behavior/RegressionTest.java
@@ -27,6 +27,9 @@ import org.junit.jupiter.api.TestInstance;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class RegressionTest extends BehaviorTestBase {
+ // Modify the value of ITERATIONS to do stress testing.
+ private static final int ITERATIONS = 10;
+
// @see https://github.com/apache/opendal/issues/5421
@Test
public void testAzblobLargeFile() throws Exception {
@@ -37,7 +40,7 @@ public class RegressionTest extends BehaviorTestBase {
final byte[] content = generateBytes(size);
try (OperatorOutputStream operatorOutputStream =
op().createOutputStream(path, size)) {
- for (int i = 0; i < 20000; i++) {
+ for (int i = 0; i < ITERATIONS; i++) {
// More iterations in case BlockCountExceedsLimit doesn't pop
up exactly after 100K blocks.
operatorOutputStream.write(content);
}