aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2011-12-05 10:05:29 +1100
committerDavid Symonds <dsymonds@golang.org>2011-12-05 10:05:29 +1100
commitdbaeb0cf13b7e2e0d7cffe61774e069368e4f7e5 (patch)
tree2442d4589422f7e4d9cbcdc93502765257e96e7d
parent214ec7b5477cbb44bf702014e6f036f9533ad9ee (diff)
downloadgo-dbaeb0cf13b7e2e0d7cffe61774e069368e4f7e5.tar.gz
go-dbaeb0cf13b7e2e0d7cffe61774e069368e4f7e5.zip
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
-rw-r--r--src/pkg/net/mail/message_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/mail/message_test.go b/src/pkg/net/mail/message_test.go
index e6aa26b2e9..671ff2efac 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)
}
}