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

fix flakiness in testPojoConversion.java #1829

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

FanYuliang
Copy link
Contributor

Description

  • Relevant Issues : testPojoConversion and testBeanConversion in com/intuit/karate/JsonUtilsTest.java are flaky because the XML/Json format strings converted from complexPojo and SimplePojo objects are non-derministic; comparing two strings directly will fail sometimes. I fixed the bug comparing the Json/XML format string with expected answer using Match.isEqualto() method since this parse the format string into object and compare them deterministically.

  • Type of change :

    • New feature
    • Bug fix for existing feature
    • Code quality improvement
    • Addition or Improvement of tests
    • Addition or Improvement of documentation

@ptrthomas ptrthomas changed the base branch from master to develop November 8, 2021 17:17
@ptrthomas ptrthomas merged commit dbae118 into karatelabs:develop Nov 8, 2021
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.

2 participants