]> Cypherpunks repositories - gostls13.git/commitdiff
net/mail: correctly compare parsed times in the test.
authorDavid Symonds <dsymonds@golang.org>
Sun, 4 Dec 2011 23:05:29 +0000 (10:05 +1100)
committerDavid Symonds <dsymonds@golang.org>
Sun, 4 Dec 2011 23:05:29 +0000 (10:05 +1100)
Fixes #2522.

R=golang-dev, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/5449084

src/pkg/net/mail/message_test.go

index e6aa26b2e98b43c7e25f44fbd922d4a948bfa9b0..671ff2efacbee5674b496ef510883ba27ceff649 100644 (file)
@@ -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)
                }
        }