mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/etcd-dump-logs: address var-naming lint warnings
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
7300abc552
commit
fce8949dd0
@ -51,7 +51,7 @@ func TestEtcdDumpLogEntryType(t *testing.T) {
|
||||
|
||||
p := t.TempDir()
|
||||
|
||||
mustCreateWalLog(t, p)
|
||||
mustCreateWALLog(t, p)
|
||||
|
||||
argtests := []struct {
|
||||
name string
|
||||
@ -96,7 +96,7 @@ func TestEtcdDumpLogEntryType(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func mustCreateWalLog(t *testing.T, path string) {
|
||||
func mustCreateWALLog(t *testing.T, path string) {
|
||||
memberdir := filepath.Join(path, "member")
|
||||
err := os.Mkdir(memberdir, 0744)
|
||||
if err != nil {
|
||||
|
@ -22,7 +22,7 @@ import (
|
||||
|
||||
func Test_readRaw(t *testing.T) {
|
||||
path := t.TempDir()
|
||||
mustCreateWalLog(t, path)
|
||||
mustCreateWALLog(t, path)
|
||||
var out bytes.Buffer
|
||||
readRaw(nil, walDir(path), &out)
|
||||
assert.Equal(t,
|
||||
|
Loading…
x
Reference in New Issue
Block a user