yonghanlin opened a new pull request, #6230: URL: https://github.com/apache/shenyu/pull/6230
## What does this PR do? This PR fixes a nondeterministic test failure in ```HttpUtilsTest#buildRequestBuilderForGETTest()``` within ```shenyu-admin``` module when running with NonDex. ## Problem ## Reproduce Test To reproduce the failure, run NonDex on ```shenyu-admin``` module using the following commands: ``` mvn -pl shenyu-admin edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=org.apache.shenyu.admin.utils.HttpUtilsTest#buildRequestBuilderForGETTest ``` ## The Fix Fix the test by checking the base URL and each query parameter separately, so it no longer depends on the order of query parameters. Specifically, it now asserts that the base URL (without query parameters) matches ```TEST_URL```, and that ```param-1``` and ```param-2``` have values "123" and "456" respectively. ## Other - [x] You have read the [contribution guidelines](https://shenyu.apache.org/community/contributor-guide). - [x] You submit test cases (unit or integration tests) that back your changes. - [x] Your local test passed `./mvnw clean install -Dmaven.javadoc.skip=true`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
