From 16ad307455db6df8de6350bfade37d650d7f1085 Mon Sep 17 00:00:00 2001 From: Pieter Olivier Date: Tue, 18 Jun 2024 15:44:56 +0200 Subject: [PATCH] Try to force StackOverflowError by increasing the depth constant The test failed to generate the expected StackOverflowError, so with this commit I try to force the error again. --- .../io/usethesource/vallang/basic/LazyStringOperationsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/io/usethesource/vallang/basic/LazyStringOperationsTest.java b/src/test/java/io/usethesource/vallang/basic/LazyStringOperationsTest.java index e0a85095d..bc98fe5d0 100644 --- a/src/test/java/io/usethesource/vallang/basic/LazyStringOperationsTest.java +++ b/src/test/java/io/usethesource/vallang/basic/LazyStringOperationsTest.java @@ -194,7 +194,7 @@ public void testStringReplace(IValueFactory vf) { @ParameterizedTest @ArgumentsSource(ValueProvider.class) public void neverRunOutOfStack(IValueFactory vf) { - int outofStack = 30000; + int outofStack = 100000; // first we have to know for sure that we would run out of stack with @see // outOfStack iterations: