-
Notifications
You must be signed in to change notification settings - Fork 0
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 flaky test #1
base: master
Are you sure you want to change the base?
Conversation
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.8 to 2.21.9. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@6a28655...ddccb87) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
LGTM. One suggestion to consider is either removing the screenshots or providing additional information about the NonDex testing tool for reference. |
Bumps [mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/mikepenz/action-junit-report/releases) - [Commits](mikepenz/action-junit-report@75b84e7...0a8a5ba) --- updated-dependencies: - dependency-name: mikepenz/action-junit-report dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps commons-io:commons-io from 2.13.0 to 2.14.0. --- updated-dependencies: - dependency-name: commons-io:commons-io dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Joyce <[email protected]>
Signed-off-by: Joyce <[email protected]>
Signed-off-by: Joyce <[email protected]>
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.8 to 2.21.9. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v2.21.8...ddccb87) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…ers and make the jar files OSGi bundles, fixes haraldk#794
…eloader to the imageio-jpeg MANIFEST.MF This is to make it possible to load the SPI plugin in OSGi.
…to all imageio OSGi bundle MANIFEST.MF files
Please address the same comment at prathyushreddylpr/druid#1 |
Updated |
Updated |
You can proceed to open a real PR. Once you open a real PR, please mark this tentative PR as |
Have you opened a real PR for this? If so, please mark this as "Opened" in your |
Description
Fixed the flaky test
withTextValuesMap
inside theStandardImageMetadataSupportTest
class.TwelveMonkeys/imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/StandardImageMetadataSupportTest.java
Line 172 in a57a1d3
Root Cause
The test
withTextValuesMap
has been reported as flaky when run with the NonDex tool. The test failed because it is trying to compare the keys and values of a Map(entries) with that of the values in a NodeList. The values of the map are hardcoded in the code and compared with those of the values in NodeList. But the Map is initialized to be a HashMap and the HashMap in Java is implemented in such a way that it does not store the order in which the keys and values are inserted.Fix
This test is fixed by replacing the HashMap with LinkedHashMap. The order in which the elements are entered is preserved inside LinkedHashMap, so when we compare the values with those of in NodeList(textEntries) the test runs as expected.
How this has been tested?
Java: openjdk version "11.0.20.1"
Maven: Apache Maven 3.6.3
Command used -
Command used -
Command used -
NonDex test passed after the fix.