Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 24, 2025
1 parent fa7fa4b commit 52291c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/test/java/com/alibaba/fastjson2/fuzz/DeepTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public void testFlatObj() {
public void testObj() {
StringBuilder buf = new StringBuilder();
int count = 100000;
if (System.getProperty("os.name").toLowerCase().contains("win") && JDKUtils.JVM_VERSION == 11) {
String os = System.getProperty("os.name");
if (os.toLowerCase().contains("win") && JDKUtils.JVM_VERSION == 11) {
count = 1000;
}
for (int i = 0; i < count; i++) {
Expand All @@ -90,7 +91,7 @@ public void testObj() {
if (JDKUtils.JVM_VERSION == 8) {
context.setMaxLevel(512);
}
assertThrows(JSONException.class, () -> JSON.parse(str, context));
assertThrows(JSONException.class, () -> JSON.parse(str, context), os);
}
}
}

0 comments on commit 52291c2

Please sign in to comment.