Skip to content

Commit bad5194

Browse files
committed
fixup! address PR comments
1 parent 206b8fb commit bad5194

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

coderd/workspaceapps_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,12 @@ func TestWorkspaceApps(t *testing.T) {
262262
opts.AppHost = ""
263263
}
264264

265-
statsFlushCh := make(chan chan<- struct{})
266-
opts.StatsCollectorOptions.Flush = statsFlushCh
265+
flushStatsCollectorCh := make(chan chan<- struct{}, 1)
266+
opts.StatsCollectorOptions.Flush = flushStatsCollectorCh
267267
flushStats := func() {
268-
flushDone := make(chan struct{})
269-
statsFlushCh <- flushDone
270-
<-flushDone
268+
flushStatsCollectorDone := make(chan struct{}, 1)
269+
flushStatsCollectorCh <- flushStatsCollectorDone
270+
<-flushStatsCollectorDone
271271
}
272272
client := coderdtest.New(t, &coderdtest.Options{
273273
DeploymentValues: deploymentValues,

0 commit comments

Comments
 (0)