We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 206b8fb commit bad5194Copy full SHA for bad5194
coderd/workspaceapps_test.go
@@ -262,12 +262,12 @@ func TestWorkspaceApps(t *testing.T) {
262
opts.AppHost = ""
263
}
264
265
- statsFlushCh := make(chan chan<- struct{})
266
- opts.StatsCollectorOptions.Flush = statsFlushCh
+ flushStatsCollectorCh := make(chan chan<- struct{}, 1)
+ opts.StatsCollectorOptions.Flush = flushStatsCollectorCh
267
flushStats := func() {
268
- flushDone := make(chan struct{})
269
- statsFlushCh <- flushDone
270
- <-flushDone
+ flushStatsCollectorDone := make(chan struct{}, 1)
+ flushStatsCollectorCh <- flushStatsCollectorDone
+ <-flushStatsCollectorDone
271
272
client := coderdtest.New(t, &coderdtest.Options{
273
DeploymentValues: deploymentValues,
0 commit comments