-
Notifications
You must be signed in to change notification settings - Fork 515
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 a test that relies on Prom library #2432
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
pkg/kubecost/window_test.go
Outdated
expDurSecStr := fmt.Sprintf("%ds", expDurSec) | ||
expDurMin := int(now.Sub(startOfToday).Minutes()) | ||
expDurMinStr := fmt.Sprintf("%dm", expDurMin) | ||
if dur != expDurSecStr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: any particular reason to not AND the two conditions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No good reason at all -- fixed, thanks!
e07bdbb
to
77956c7
Compare
77956c7
to
af870f1
Compare
We were assuming that the library always returns seconds, but it can now also return minutes (presumably if the seconds divide well). This is probably failing due to an update of that library. Signed-off-by: Michael Dresser <michaelmdresser@gmail.com>
af870f1
to
f3f9569
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
What does this PR change?
We were assuming that the library always returns seconds, but it can now also return minutes (presumably if the seconds divide well). This is probably failing due to an update of that library.
How will this PR impact users?
How was this PR tested?