[ https://issues.apache.org/jira/browse/SLING-11727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus updated SLING-11727: ------------------------------------ Summary: Do not rely on order of JSON attributes in test (was: Test Failures on NonDex) > Do not rely on order of JSON attributes in test > ----------------------------------------------- > > Key: SLING-11727 > URL: https://issues.apache.org/jira/browse/SLING-11727 > Project: Sling > Issue Type: Bug > Components: Servlets > Reporter: Priyanka Awatramani > Assignee: Konrad Windszus > Priority: Trivial > Fix For: Servlets Get 2.1.46 > > Time Spent: 2h 20m > Remaining Estimate: 0h > > The tests *JsonRendererTest#testBooleansNoTidy* and > *JsonRendererTest#testBooleansNoTidy#testBooleansWithTidy* passed using > normal maven-test, but showed Non-deterministic behavior under > NonDex([https://github.com/TestingResearchIllinois/NonDex)] and thus failed. > After some probing, I found the output from the test is not deterministic. > > Steps to reproduce the failure: > Install Nondex([https://github.com/TestingResearchIllinois/NonDex)] in the > environment. > Then cd to nifi repository, and run the following: > {code:java} > mvn install -pl . -am -DskipTests > mvn -pl . test > -Dtest=org.apache.sling.servlets.get.impl.helpers.JsonRendererTest#testBooleansNoTidy > mvn -pl . edu.illinois:nondex-maven-plugin:2.1:nondex > -Dtest=org.apache.sling.servlets.get.impl.helpers.JsonRendererTest#testBooleansNoTidy{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)