twilio / twilio-java

A Java library for communicating with the Twilio REST API and generating TwiML.
MIT License
482 stars 421 forks source link

fix: Fixing Flaky Tests #725

Closed priyanka-28 closed 1 year ago

priyanka-28 commented 1 year ago

Fixes

The test in com.twilio.jwt.taskrouter.PolicyTest#testToJsonexpress non-deterministic behaviour and thus fail with nondex. The fix is adding the annotation JSONPropertyOrder and changing the order of the json attributes to ensure determinism.

Checklist

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

rakatyal commented 1 year ago

Fixes https://github.com/twilio/twilio-java/issues/724