diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2017-05-04 15:05:33 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-05-04 15:17:13 +0000 |
commit | 71e63fa44f0017b03ba7ccd2bb8561c6a9ff17db (patch) | |
tree | 79a5429b747c1b51b5967849cccac3c579d0dced /src/net/dnsclient_unix_test.go | |
parent | b8c7fddd58432b6cbe12af221d275935a1ffc8f0 (diff) | |
download | go-71e63fa44f0017b03ba7ccd2bb8561c6a9ff17db.tar.gz go-71e63fa44f0017b03ba7ccd2bb8561c6a9ff17db.zip |
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>
Diffstat (limited to 'src/net/dnsclient_unix_test.go')
-rw-r--r-- | src/net/dnsclient_unix_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go index e1bbf68e57..a23e5f6222 100644 --- a/src/net/dnsclient_unix_test.go +++ b/src/net/dnsclient_unix_test.go @@ -784,7 +784,7 @@ func TestRetryTimeout(t *testing.T) { return nil, poll.ErrTimeout } - if deadline == deadline0 { + if deadline.Equal(deadline0) { t.Error("deadline didn't change") } |