mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/pbutil: Fix go vet errors
This commit is contained in:
parent
7cf8eb8dce
commit
cd772ea737
@ -24,7 +24,7 @@ func TestMarshaler(t *testing.T) {
|
||||
data := []byte("test data")
|
||||
m := &fakeMarshaler{data: data}
|
||||
if g := MustMarshal(m); !reflect.DeepEqual(g, data) {
|
||||
t.Errorf("data = %s, want %s", g, m)
|
||||
t.Errorf("data = %s, want %s", g, m.data)
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ func TestUnmarshaler(t *testing.T) {
|
||||
m := &fakeUnmarshaler{}
|
||||
MustUnmarshal(m, data)
|
||||
if !reflect.DeepEqual(m.data, data) {
|
||||
t.Errorf("data = %s, want %s", m.data, m)
|
||||
t.Errorf("data = %s, want %s", m.data, data)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user