Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1de87f

Browse files
committed
fix comment placement
1 parent040390d commitb1de87f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎coderd/insights_internal_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ func Test_parseInsightsStartAndEndTime(t *testing.T) {
133133
rw:=httptest.NewRecorder()
134134
gotStartTime,gotEndTime,gotOk:=parseInsightsStartAndEndTime(context.Background(),rw,tt.args.startTime,tt.args.endTime)
135135

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.
139136
if!assert.Equal(t,tt.wantOk,gotOk) {
140137
//nolint:bodyclose
141138
t.Log("Status: ",rw.Result().StatusCode)
142139
t.Log("Body: ",rw.Body.String())
143140
}
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.
144144
assert.WithinDuration(t,tt.wantStartTime,gotStartTime,0)
145145
assert.True(t,tt.wantStartTime.Equal(gotStartTime))
146146
assert.WithinDuration(t,tt.wantEndTime,gotEndTime,0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp