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

hopefully remove test failures due to non-deterministic comparisons #420

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

acc-jon
Copy link
Contributor

@acc-jon acc-jon commented Dec 3, 2020

Comparing the JSON marshaled values of the AllResourceConfigs seemed to be sensitive to the order of elements in the array under each map key and led to intermittent test failures. This change performs that comparison with a map whose keys are based on the file and resource id, so that the order will be deterministic. I am not able to reproduce the test failures on my machine, so I can't be certain this will be sufficient--I only change the first-order map elements and we might need to drill deeper into the resource definitions.

@sonarcloud
Copy link

sonarcloud bot commented Dec 3, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #420 (932a1a6) into master (8d6e722) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #420   +/-   ##
=======================================
  Coverage   66.21%   66.21%           
=======================================
  Files          85       85           
  Lines        1915     1915           
=======================================
  Hits         1268     1268           
  Misses        535      535           
  Partials      112      112           

@williepaul williepaul merged commit 559c45d into master Dec 3, 2020
@williepaul williepaul deleted the fix-jon-testorder branch December 3, 2020 03:50
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.

3 participants