tools/etcd-dump-logs: address var-naming lint warnings

Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes 2024-04-23 20:13:02 -07:00
parent 7300abc552
commit fce8949dd0
No known key found for this signature in database
GPG Key ID: 4037D37741ED0CC5
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ func TestEtcdDumpLogEntryType(t *testing.T) {
p := t.TempDir() p := t.TempDir()
mustCreateWalLog(t, p) mustCreateWALLog(t, p)
argtests := []struct { argtests := []struct {
name string 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") memberdir := filepath.Join(path, "member")
err := os.Mkdir(memberdir, 0744) err := os.Mkdir(memberdir, 0744)
if err != nil { if err != nil {

View File

@ -22,7 +22,7 @@ import (
func Test_readRaw(t *testing.T) { func Test_readRaw(t *testing.T) {
path := t.TempDir() path := t.TempDir()
mustCreateWalLog(t, path) mustCreateWALLog(t, path)
var out bytes.Buffer var out bytes.Buffer
readRaw(nil, walDir(path), &out) readRaw(nil, walDir(path), &out)
assert.Equal(t, assert.Equal(t,