Skip to content

Commit 50cb997

Browse files
committed
Update existing test to refer to #3397 as well.
1 parent 1c6a227 commit 50cb997

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/test/java/com/fasterxml/jackson/databind/deser/dos/DeepJsonNodeDeser2816Test.java renamed to src/test/java/com/fasterxml/jackson/databind/deser/dos/DeepJsonNodeDeser3397Test.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
import com.fasterxml.jackson.databind.*;
44

5-
// [databind#2816], wrt JsonNode
6-
public class DeepJsonNodeDeser2816Test extends BaseMapTest
5+
// [databind#3397], wrt JsonNode
6+
public class DeepJsonNodeDeser3397Test extends BaseMapTest
77
{
88
// 28-Mar-2021, tatu: Used to fail at 5000 for tree/object,
99
// 8000 for tree/array, before work on iterative JsonNode deserializer
10-
// ... currently gets a bit slow at 1M but passes
10+
// ... currently gets a bit slow at 1M but passes.
11+
// But test with 50k as practical limit, to guard against regression
1112
// private final static int TOO_DEEP_NESTING = 1_000_000;
12-
private final static int TOO_DEEP_NESTING = 9999;
13+
private final static int TOO_DEEP_NESTING = 49999;
1314

1415
private final ObjectMapper MAPPER = newJsonMapper();
1516

src/test/java/com/fasterxml/jackson/failing/DeepNestingUntypedDeser2816Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import com.fasterxml.jackson.databind.*;
77

88
// [databind#2816] wrt "untyped" (Maps, Lists)
9+
//
10+
// (note: [databind#3397] covers solved issue wrt JsonNodeDeserializer)
911
public class DeepNestingUntypedDeser2816Test extends BaseMapTest
1012
{
1113
// 28-Mar-2021, tatu: Currently 3000 fails for untyped/Object,

0 commit comments

Comments
 (0)