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

etcdserver, wal: Fix tests unintended CASTing of int->String. #12198

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

ptabor
Copy link
Contributor

@ptabor ptabor commented Aug 4, 2020

Fixes following problems during "./etcd# go test ./..." build:

go.etcd.io/etcd/v3/etcdserver/api/v2store_test
etcdserver/api/v2store/store_test.go:847:24: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)

go.etcd.io/etcd/v3/wal
wal/wal_test.go:242:68: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)

@ptabor ptabor force-pushed the 20200803-int-to-string-test-fix branch 2 times, most recently from f6c7eeb to 1050e0e Compare August 4, 2020 16:26
@ptabor
Copy link
Contributor Author

ptabor commented Aug 4, 2020

\cc @jpbetz

… int to String.

Fixes following problems during "./etcd# go test ./..."

> go.etcd.io/etcd/v3/etcdserver/api/v2store_test
etcdserver/api/v2store/store_test.go:847:24: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)

> go.etcd.io/etcd/v3/wal
wal/wal_test.go:242:68: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
@ptabor ptabor force-pushed the 20200803-int-to-string-test-fix branch from 1050e0e to 00de56a Compare August 4, 2020 18:28
@ptabor
Copy link
Contributor Author

ptabor commented Aug 4, 2020

\cc @jingyih - could you, pls, review / merge

Copy link
Member

@spzala spzala left a comment

Choose a reason for hiding this comment

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

lgmt
thanks @ptabor

Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

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

lgtm thx

@gyuho gyuho merged commit ed27d9d into etcd-io:master Aug 12, 2020
@ptabor ptabor deleted the 20200803-int-to-string-test-fix branch October 22, 2020 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants