mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue