diff --git a/src/pkg/net/mail/message_test.go b/src/pkg/net/mail/message_test.go index e6aa26b2e98..671ff2efacb 100644 --- a/src/pkg/net/mail/message_test.go +++ b/src/pkg/net/mail/message_test.go @@ -105,7 +105,7 @@ func TestDateParsing(t *testing.T) { t.Errorf("Failed parsing %q: %v", test.dateStr, err) continue } - if !reflect.DeepEqual(date, test.exp) { + if !date.Equal(test.exp) { t.Errorf("Parse of %q: got %+v, want %+v", test.dateStr, date, test.exp) } }