mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
cypto/ocsp: fix tests
Actually compare the result with expected not itself R=agl, bradfitz CC=golang-dev, rsc https://golang.org/cl/5477079
This commit is contained in:
parent
6e2c3ef428
commit
6f975fbb31
@ -23,11 +23,11 @@ func TestOCSPDecode(t *testing.T) {
|
||||
NextUpdate: time.Date(2010, 7, 7, 18, 35, 17, 0, time.UTC),
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(resp.ThisUpdate, resp.ThisUpdate) {
|
||||
if !reflect.DeepEqual(resp.ThisUpdate, expected.ThisUpdate) {
|
||||
t.Errorf("resp.ThisUpdate: got %d, want %d", resp.ThisUpdate, expected.ThisUpdate)
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(resp.NextUpdate, resp.NextUpdate) {
|
||||
if !reflect.DeepEqual(resp.NextUpdate, expected.NextUpdate) {
|
||||
t.Errorf("resp.NextUpdate: got %d, want %d", resp.NextUpdate, expected.NextUpdate)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user