@@ -91,18 +91,18 @@ func TestOnList(t *testing.T) {
9191
9292 switch ca {
9393 case "filtered" :
94- v .Set ("start" , time .Date (2008 , 11 , 0o7 , 11 , 22 , 1 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
95- v .Set ("end" , time .Date (2009 , 11 , 0o7 , 11 , 23 , 4 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
94+ v .Set ("start" , time .Date (2008 , 11 , 7 , 11 , 22 , 1 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
95+ v .Set ("end" , time .Date (2009 , 11 , 7 , 11 , 23 , 4 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
9696
9797 case "filtered and gap" :
98- v .Set ("start" , time .Date (2008 , 11 , 0o7 , 11 , 23 , 20 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
99- v .Set ("end" , time .Date (2009 , 11 , 0o7 , 11 , 23 , 4 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
98+ v .Set ("start" , time .Date (2008 , 11 , 7 , 11 , 23 , 20 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
99+ v .Set ("end" , time .Date (2009 , 11 , 7 , 11 , 23 , 4 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
100100
101101 case "start after duration" :
102- v .Set ("start" , time .Date (2010 , 11 , 0o7 , 11 , 23 , 20 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
102+ v .Set ("start" , time .Date (2010 , 11 , 7 , 11 , 23 , 20 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
103103
104104 case "start before first" :
105- v .Set ("start" , time .Date (2007 , 11 , 0o7 , 11 , 23 , 20 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
105+ v .Set ("start" , time .Date (2007 , 11 , 7 , 11 , 23 , 20 , 500000000 , time .Local ).Format (time .RFC3339Nano ))
106106 }
107107
108108 u .RawQuery = v .Encode ()
@@ -130,57 +130,57 @@ func TestOnList(t *testing.T) {
130130 require .Equal (t , []interface {}{
131131 map [string ]interface {}{
132132 "duration" : float64 (66 ),
133- "start" : time .Date (2008 , 11 , 0o7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
133+ "start" : time .Date (2008 , 11 , 7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
134134 "url" : "http://localhost:9996/get?duration=66&path=mypath&start=" +
135- url .QueryEscape (time .Date (2008 , 11 , 0o7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
135+ url .QueryEscape (time .Date (2008 , 11 , 7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
136136 },
137137 map [string ]interface {}{
138138 "duration" : float64 (4 ),
139- "start" : time .Date (2009 , 11 , 0o7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
139+ "start" : time .Date (2009 , 11 , 7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
140140 "url" : "http://localhost:9996/get?duration=4&path=mypath&start=" +
141- url .QueryEscape (time .Date (2009 , 11 , 0o7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
141+ url .QueryEscape (time .Date (2009 , 11 , 7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
142142 },
143143 }, out )
144144
145145 case "filtered" :
146146 require .Equal (t , []interface {}{
147147 map [string ]interface {}{
148148 "duration" : float64 (65 ),
149- "start" : time .Date (2008 , 11 , 0o7 , 11 , 22 , 1 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
149+ "start" : time .Date (2008 , 11 , 7 , 11 , 22 , 1 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
150150 "url" : "http://localhost:9996/get?duration=65&path=mypath&start=" +
151- url .QueryEscape (time .Date (2008 , 11 , 0o7 , 11 , 22 , 1 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
151+ url .QueryEscape (time .Date (2008 , 11 , 7 , 11 , 22 , 1 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
152152 },
153153 map [string ]interface {}{
154154 "duration" : float64 (2 ),
155- "start" : time .Date (2009 , 11 , 0o7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
155+ "start" : time .Date (2009 , 11 , 7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
156156 "url" : "http://localhost:9996/get?duration=2&path=mypath&start=" +
157- url .QueryEscape (time .Date (2009 , 11 , 0o7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
157+ url .QueryEscape (time .Date (2009 , 11 , 7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
158158 },
159159 }, out )
160160
161161 case "filtered and gap" :
162162 require .Equal (t , []interface {}{
163163 map [string ]interface {}{
164164 "duration" : float64 (4 ),
165- "start" : time .Date (2008 , 11 , 0o7 , 11 , 24 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
165+ "start" : time .Date (2008 , 11 , 7 , 11 , 24 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
166166 "url" : "http://localhost:9996/get?duration=4&path=mypath&start=" +
167- url .QueryEscape (time .Date (2008 , 11 , 0o7 , 11 , 24 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
167+ url .QueryEscape (time .Date (2008 , 11 , 7 , 11 , 24 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
168168 },
169169 }, out )
170170
171171 case "different init" :
172172 require .Equal (t , []interface {}{
173173 map [string ]interface {}{
174174 "duration" : float64 (62 ),
175- "start" : time .Date (2008 , 11 , 0o7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
175+ "start" : time .Date (2008 , 11 , 7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
176176 "url" : "http://localhost:9996/get?duration=62&path=mypath&start=" +
177- url .QueryEscape (time .Date (2008 , 11 , 0o7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
177+ url .QueryEscape (time .Date (2008 , 11 , 7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
178178 },
179179 map [string ]interface {}{
180180 "duration" : float64 (1 ),
181- "start" : time .Date (2008 , 11 , 0o7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
181+ "start" : time .Date (2008 , 11 , 7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
182182 "url" : "http://localhost:9996/get?duration=1&path=mypath&start=" +
183- url .QueryEscape (time .Date (2008 , 11 , 0o7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
183+ url .QueryEscape (time .Date (2008 , 11 , 7 , 11 , 23 , 2 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
184184 },
185185 }, out )
186186 }
@@ -327,9 +327,9 @@ func TestOnListCachedDuration(t *testing.T) {
327327 require .Equal (t , []interface {}{
328328 map [string ]interface {}{
329329 "duration" : float64 (50 ),
330- "start" : time .Date (2008 , 11 , 0o7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
330+ "start" : time .Date (2008 , 11 , 7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano ),
331331 "url" : "http://localhost:9996/get?duration=50&path=mypath&start=" +
332- url .QueryEscape (time .Date (2008 , 11 , 0o7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
332+ url .QueryEscape (time .Date (2008 , 11 , 7 , 11 , 22 , 0 , 500000000 , time .Local ).Format (time .RFC3339Nano )),
333333 },
334334 }, out )
335335}
0 commit comments