Commit 06af0ea3 authored by Alex Brainman's avatar Alex Brainman

encoding/gob: fix broken test (fix build)

R=golang-dev, kevlar
CC=adg, golang-dev
https://golang.org/cl/7093056
parent bc1152a3
......@@ -394,7 +394,7 @@ func TestGobEncoderValueThenPointer(t *testing.T) {
if got, want := x.V, v; got != want {
t.Errorf("v = %q, want %q", got, want)
}
if got, want := v.W, w; got == nil {
if got, want := x.W, w; got == nil {
t.Errorf("w = nil, want %q", want)
} else if *got != want {
t.Errorf("w = %q, want %q", *got, want)
......@@ -422,7 +422,7 @@ func TestGobEncoderPointerThenValue(t *testing.T) {
} else if *got != want {
t.Errorf("v = %q, want %q", got, want)
}
if got, want := v.W, w; got != want {
if got, want := x.W, w; got != want {
t.Errorf("w = %q, want %q", got, want)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment