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

Commit49acc52

Browse files
committed
move drain after prepare into correct position
1 parentcfad542 commit49acc52

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎coderd/insights_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,18 +1238,18 @@ func TestTemplateInsights_Golden(t *testing.T) {
12381238
templates,users,testData:=prepareFixtureAndTestData(t,tt.makeFixture,tt.makeTestData)
12391239
client,events:=prepare(t,templates,users,testData)
12401240

1241+
// Drain two events, the first one resumes rolluper
1242+
// operation and the second one waits for the rollup
1243+
// to complete.
1244+
_,_=<-events,<-events
1245+
12411246
for_,req:=rangett.requests {
12421247
req:=req
12431248
t.Run(req.name,func(t*testing.T) {
12441249
t.Parallel()
12451250

12461251
ctx:=testutil.Context(t,testutil.WaitMedium)
12471252

1248-
// Drain two events, the first one resumes rolluper
1249-
// operation and the second one waits for the rollup
1250-
// to complete.
1251-
_,_=<-events,<-events
1252-
12531253
report,err:=client.TemplateInsights(ctx,req.makeRequest(templates))
12541254
require.NoError(t,err,"want no error getting template insights")
12551255

@@ -2024,18 +2024,18 @@ func TestUserActivityInsights_Golden(t *testing.T) {
20242024
templates,users,testData:=prepareFixtureAndTestData(t,tt.makeFixture,tt.makeTestData)
20252025
client,events:=prepare(t,templates,users,testData)
20262026

2027+
// Drain two events, the first one resumes rolluper
2028+
// operation and the second one waits for the rollup
2029+
// to complete.
2030+
_,_=<-events,<-events
2031+
20272032
for_,req:=rangett.requests {
20282033
req:=req
20292034
t.Run(req.name,func(t*testing.T) {
20302035
t.Parallel()
20312036

20322037
ctx:=testutil.Context(t,testutil.WaitMedium)
20332038

2034-
// Drain two events, the first one resumes rolluper
2035-
// operation and the second one waits for the rollup
2036-
// to complete.
2037-
_,_=<-events,<-events
2038-
20392039
report,err:=client.UserActivityInsights(ctx,req.makeRequest(templates))
20402040
require.NoError(t,err,"want no error getting template insights")
20412041

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp