alibaba / fastjson2

🚄 FASTJSON2 is a Java JSON library with excellent performance.
Apache License 2.0
3.79k stars 495 forks source link

[BUG] Found new non deterministic tests #3149

Closed Mukta13 closed 4 days ago

Mukta13 commented 1 week ago

Problem Description

Found 2 non deterministic tests in the following files:

The tests that were flaky within these files were:

Environment Info:

Steps to Reproduce

Run the following commands for each flaky test:

mvn -pl core edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.alibaba.fastjson2.issues_2900.Issue2959

mvn -pl core edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.alibaba.fastjson2.dubbo.DubboTest4#test6

Results would be:

[ERROR]   Issue2959.test:17 expected: <{"projectNO":null,"orderNO":null,"orderType":null,"pN":null,"qty":null,"description":null,"customerCode":null,"customerName":null,"currency":null,"netPrice":null,"uSD":null,"rate":null,"orderDate":null,"requestDate":null,"planedDate":null,"this$0":null}> but was: <{"orderNO":null,"customerName":null,"pN":null,"netPrice":null,"this$0":null,"uSD":null,"requestDate":null,"currency":null,"qty":null,"planedDate":null,"description":null,"customerCode":null,"rate":null,"orderType":null,"projectNO":null,"orderDate":null}>

[ERROR]   DubboTest4.test6:224 expected: <null> but was: <java.io.IOException: xxx>

Expected results:

The tests should run without non-determinism issues, and the build should be successful after running the above commands.

Mukta13 commented 1 week ago

Fix in #3150