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

pkg/chunkenc: fix test using string(int) conversion #2647

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

arl
Copy link
Contributor

@arl arl commented Sep 19, 2020

What this PR does / why we need it:

Since go1.15, there's a new vet check for code such as string(x) where x has an integer type other than rune. This vet check is enabled by default on go test.

TestSerialization failed because of that, this commit replaces string()conversions with strconv.Itoa calls

Which issue(s) this PR fixes:
Fixes #2646

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

Since go1.15, there's a new vet check for code such as string(x) where x
has an integer type other than rune.  This vet check is enabled by
default on go test.

TestSerialization failed because of that, this commit replaces `string()`
conversions with `strconv.Itoa` calls

Fixes grafana#2646
@codecov-commenter
Copy link

Codecov Report

Merging #2647 into master will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2647      +/-   ##
==========================================
+ Coverage   61.16%   61.23%   +0.06%     
==========================================
  Files         172      172              
  Lines       13358    13358              
==========================================
+ Hits         8171     8180       +9     
+ Misses       4437     4429       -8     
+ Partials      750      749       -1     
Impacted Files Coverage Δ
pkg/logql/evaluator.go 92.81% <0.00%> (+0.42%) ⬆️
pkg/canary/comparator/comparator.go 78.18% <0.00%> (+1.81%) ⬆️
pkg/promtail/targets/file/filetarget.go 66.19% <0.00%> (+2.11%) ⬆️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

LGTM

@owen-d owen-d merged commit 85696d0 into grafana:master Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests: test fails with go1.15
3 participants