Skip to content

Fix Precision issue with Durations #229

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

Merged
merged 3 commits into from
Sep 12, 2019

Conversation

whithajess
Copy link
Contributor

  • CloudWatchEvents seem to return with precision 60.0 instead of 60
  • Change tests to match
  • Change types to float64

#228

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* CloudWatchEvents seem to return with precision 60.0 instead of 60
* Change tests to match
* Change types to float64
@codecov-io
Copy link

codecov-io commented Sep 3, 2019

Codecov Report

Merging #229 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #229   +/-   ##
=======================================
  Coverage   74.44%   74.44%           
=======================================
  Files          20       20           
  Lines         677      677           
=======================================
  Hits          504      504           
  Misses        128      128           
  Partials       45       45
Impacted Files Coverage Δ
events/duration.go 44.44% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68877f4...c7a3e0a. Read the comment docs.

Copy link
Contributor

@roberth-k roberth-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change I'd make is keep a mixture of decimal and integer values in the tests to ensure it can parse either, as the JSON spec (nor intermediate parsers) won't guarantee either form.

@whithajess
Copy link
Contributor Author

👍 made changes to have both in tests.

@whithajess
Copy link
Contributor Author

@bmoffatt You may want to merge this one as you put through the original change set. Thanks!

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@bmoffatt bmoffatt merged commit e5086e5 into aws:master Sep 12, 2019
@whithajess whithajess deleted the hotfix/codebuild-events-fix branch September 13, 2019 04:27
@whithajess whithajess restored the hotfix/codebuild-events-fix branch September 13, 2019 04:29
@whithajess whithajess deleted the hotfix/codebuild-events-fix branch July 19, 2021 22:51
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.

None yet

4 participants