@@ -133,14 +133,14 @@ func Test_parseInsightsStartAndEndTime(t *testing.T) {
133
133
rw := httptest .NewRecorder ()
134
134
gotStartTime ,gotEndTime ,gotOk := parseInsightsStartAndEndTime (context .Background (),rw ,tt .args .startTime ,tt .args .endTime )
135
135
136
- // assert.Equal is unable to test time equality with different
137
- // (but same) locations because the *time.Location names differ
138
- // between LoadLocation and Parse, so we use assert.WithinDuration.
139
136
if ! assert .Equal (t ,tt .wantOk ,gotOk ) {
140
137
//nolint:bodyclose
141
138
t .Log ("Status: " ,rw .Result ().StatusCode )
142
139
t .Log ("Body: " ,rw .Body .String ())
143
140
}
141
+ // assert.Equal is unable to test time equality with different
142
+ // (but same) locations because the *time.Location names differ
143
+ // between LoadLocation and Parse, so we use assert.WithinDuration.
144
144
assert .WithinDuration (t ,tt .wantStartTime ,gotStartTime ,0 )
145
145
assert .True (t ,tt .wantStartTime .Equal (gotStartTime ))
146
146
assert .WithinDuration (t ,tt .wantEndTime ,gotEndTime ,0 )