mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: use time.Time.Equal instead of == in some tests
(Found by making time.Time uncomparable and rerunning std tests locally.) Change-Id: I4fa6fb0ba7334965362387e2f6541c17a27ac3aa Reviewed-on: https://go-review.googlesource.com/42616 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
b8c7fddd58
commit
71e63fa44f
3 changed files with 3 additions and 3 deletions
|
|
@ -529,7 +529,7 @@ func TestDialerPartialDeadline(t *testing.T) {
|
|||
if err != tt.expectErr {
|
||||
t.Errorf("#%d: got %v; want %v", i, err, tt.expectErr)
|
||||
}
|
||||
if deadline != tt.expectDeadline {
|
||||
if !deadline.Equal(tt.expectDeadline) {
|
||||
t.Errorf("#%d: got %v; want %v", i, deadline, tt.expectDeadline)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue