]> Cypherpunks repositories - gostls13.git/commit
encoding/asn1: fix test on OpenBSD
authorRuss Cox <rsc@golang.org>
Wed, 30 Nov 2011 18:36:25 +0000 (13:36 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 30 Nov 2011 18:36:25 +0000 (13:36 -0500)
commite812db35581d257fb2d3518509898fc22bdd2d48
tree104305c26a49ead851aff1dc9e1be038c24aeb84
parent12eee9edbc0a63ba5802541ec9bfec4a925637ee
encoding/asn1: fix test on OpenBSD

time.Parse uses time.Local if it has the right zone offset,
otherwise it calls time.FixedZone.  The test's use of reflect.DeepEqual
meant that the test expected time.FixedZone always, failing
when the local time zone really would have used -0700 for
that time.  The fix is to format the time to display only the
pieces we intend to test.

R=golang-dev, agl, iant
CC=golang-dev
https://golang.org/cl/5437088
src/pkg/encoding/asn1/asn1_test.go