Skip to content

Fix flaky json test#1

Open
YujiaYan0709 wants to merge 1 commit intoMeituan-Dianping:masterfrom
YujiaYan0709:fix-flaky
Open

Fix flaky json test#1
YujiaYan0709 wants to merge 1 commit intoMeituan-Dianping:masterfrom
YujiaYan0709:fix-flaky

Conversation

@YujiaYan0709
Copy link
Copy Markdown

The JsonUtil.encode2UnderScore(param1) cannot ensure the returned fields are also in given order. Therefore comparing the String is a flaky test. I fixed it by using jsonassert to ignore order when comparing JSON like String.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant