Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Found 2 Flaky test in JSONBTableTest3.java #3096

Open
Mukta13 opened this issue Oct 12, 2024 · 0 comments
Open

[BUG] Found 2 Flaky test in JSONBTableTest3.java #3096

Mukta13 opened this issue Oct 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Mukta13
Copy link
Contributor

Mukta13 commented Oct 12, 2024

Problem Description

Found 2 flaky tests in the file: JSONBTableTest3.java

The tests that were flaky within this file were: test_0() and test_1().

Environment Info:

OS: Ubuntu 22.04.5 LTS, Release: 22.04
JDK: java-17-openjdk-amd64
Version:Latest version
Steps to reproduce

Run these commands:

mvn -pl core edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.alibaba.fastjson2.codec.JSONBTableTest3#test_0


mvn -pl core edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.alibaba.fastjson2.codec.JSONBTableTest3#test_1

The results would be:

[ERROR]   JSONBTableTest3.test_1:52 expected: <{"list2":[{"id":101,"name":"DataWorks"},{"id":102,"name":"MaxCompute"},{"name":"EMR","ext":"101","id":103}]}> but was: <{"list2":[{"name":"DataWorks","id":101},{"id":102,"name":"MaxCompute"},{"ext":"101","id":103,"name":"EMR"}]}>
[ERROR]   


JSONBTableTest3.test_0:29 expected: <{"list2":[{"name":"DataWorks","id":101},{"name":"MaxCompute","id":102},{"name":"EMR","id":103}]}> but was: <{"list2":[{"id":101,"name":"DataWorks"},{"id":102,"name":"MaxCompute"},{"name":"EMR","id":103}]}>

Expected Results

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

@Mukta13 Mukta13 added the bug Something isn't working label Oct 12, 2024
@Mukta13 Mukta13 changed the title [BUG] [BUG] Found 2 Flaky test in JSONBTableTest3.java Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant