From dbaeb0cf13b7e2e0d7cffe61774e069368e4f7e5 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Mon, 5 Dec 2011 10:05:29 +1100 Subject: [PATCH] net/mail: correctly compare parsed times in the test. Fixes #2522. R=golang-dev, bradfitz, alex.brainman CC=golang-dev https://golang.org/cl/5449084 --- src/pkg/net/mail/message_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }