@@ -159,15 +159,23 @@ func Test_parseInsightsInterval_week(t *testing.T) {
159
159
require .NoError (t , err )
160
160
161
161
now := time .Now ()
162
+ t .Logf ("now: %s" , now )
163
+
162
164
y , m , d := now .Date ()
163
165
today := time .Date (y , m , d , 0 , 0 , 0 , 0 , sydneyLoc )
166
+ t .Logf ("today: %s" , today )
164
167
165
168
thisHour := time .Date (y , m , d , now .Hour (), 0 , 0 , 0 , sydneyLoc )
169
+ t .Logf ("thisHour: %s" , thisHour )
166
170
twoHoursAgo := thisHour .Add (- 2 * time .Hour )
171
+ t .Logf ("twoHoursAgo: %s" , twoHoursAgo )
167
172
thirteenDaysAgo := today .AddDate (0 , 0 , - 13 )
173
+ t .Logf ("thirteenDaysAgo: %s" , thirteenDaysAgo )
168
174
169
175
sixDaysAgo := today .AddDate (0 , 0 , - 6 )
176
+ t .Logf ("sixDaysAgo: %s" , sixDaysAgo )
170
177
nineDaysAgo := today .AddDate (0 , 0 , - 9 )
178
+ t .Logf ("nineDaysAgo: %s" , nineDaysAgo )
171
179
172
180
type args struct {
173
181
startTime string
@@ -186,14 +194,6 @@ func Test_parseInsightsInterval_week(t *testing.T) {
186
194
},
187
195
wantOk : true ,
188
196
},
189
- {
190
- name : "Two weeks" ,
191
- args : args {
192
- startTime : thirteenDaysAgo .Format (layout ),
193
- endTime : twoHoursAgo .Format (layout ),
194
- },
195
- wantOk : true ,
196
- },
197
197
{
198
198
name : "One full week" ,
199
199
args : args {
0 commit comments