@@ -303,12 +303,6 @@ func TestUserLatencyInsights_BadRequest(t *testing.T) {
303
303
EndTime :today .AddDate (0 ,0 ,- 1 ),
304
304
})
305
305
assert .Error (t ,err ,"want error for end time before start time" )
306
-
307
- _ ,err = client .UserLatencyInsights (ctx , codersdk.UserLatencyInsightsRequest {
308
- StartTime :today .AddDate (0 ,0 ,- 7 ),
309
- EndTime :today .Add (- time .Hour ),
310
- })
311
- assert .Error (t ,err ,"want error for end time partial day when not today" )
312
306
}
313
307
314
308
func TestUserActivityInsights_BadRequest (t * testing.T ) {
@@ -332,13 +326,6 @@ func TestUserActivityInsights_BadRequest(t *testing.T) {
332
326
EndTime :today .AddDate (0 ,0 ,- 1 ),
333
327
})
334
328
assert .Error (t ,err ,"want error for end time before start time" )
335
-
336
- // Send insights request
337
- _ ,err = client .UserActivityInsights (ctx , codersdk.UserActivityInsightsRequest {
338
- StartTime :today .AddDate (0 ,0 ,- 7 ),
339
- EndTime :today .Add (- time .Hour ),
340
- })
341
- assert .Error (t ,err ,"want error for end time partial day when not today" )
342
329
}
343
330
344
331
func TestTemplateInsights_Golden (t * testing.T ) {
@@ -2054,12 +2041,6 @@ func TestTemplateInsights_BadRequest(t *testing.T) {
2054
2041
})
2055
2042
assert .Error (t ,err ,"want error for end time before start time" )
2056
2043
2057
- _ ,err = client .TemplateInsights (ctx , codersdk.TemplateInsightsRequest {
2058
- StartTime :today .AddDate (0 ,0 ,- 7 ),
2059
- EndTime :today .Add (- time .Hour ),
2060
- })
2061
- assert .Error (t ,err ,"want error for end time partial day when not today" )
2062
-
2063
2044
_ ,err = client .TemplateInsights (ctx , codersdk.TemplateInsightsRequest {
2064
2045
StartTime :today .AddDate (0 ,0 ,- 1 ),
2065
2046
EndTime :today ,