File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,7 @@ func reflectionEncoderTest(t *testing.T) {
361
361
oids := []objectid.ObjectID {objectid .New (), objectid .New (), objectid .New ()}
362
362
var str = new (string )
363
363
* str = "bar"
364
+ now := time .Now ()
364
365
365
366
testCases := []struct {
366
367
name string
@@ -856,7 +857,7 @@ func reflectionEncoderTest(t *testing.T) {
856
857
W : nil ,
857
858
X : []map [struct {}]struct {}{}, // Should be empty BSON Array
858
859
Y : []map [struct {}]struct {}{{}}, // Should be BSON array with one element, an empty BSON SubDocument
859
- Z : time . Now () ,
860
+ Z : now ,
860
861
},
861
862
docToBytes (NewDocument (
862
863
EC .ArrayFromElements ("a" , VC .Boolean (true )),
@@ -883,7 +884,7 @@ func reflectionEncoderTest(t *testing.T) {
883
884
EC .Null ("w" ),
884
885
EC .Array ("x" , NewArray ()),
885
886
EC .ArrayFromElements ("y" , VC .Document (NewDocument ())),
886
- EC .DateTime ("z" , time . Now () .UnixNano ()/ int64 (time .Millisecond )),
887
+ EC .DateTime ("z" , now .UnixNano ()/ int64 (time .Millisecond )),
887
888
)),
888
889
nil ,
889
890
},
You can’t perform that action at this time.
0 commit comments