mirror of
https://github.com/golang/go
synced 2024-11-21 15:24:45 -07:00
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
This commit is contained in:
parent
214ec7b547
commit
dbaeb0cf13
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user