mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: fix stats leaking in tests (#6478)
See https://github.com/coder/coder/actions/runs/4350254306/jobs/7601134509
This commit is contained in:
+3
-1
@@ -122,7 +122,9 @@ func New(options Options) io.Closer {
|
||||
tempDir: options.TempDir,
|
||||
lifecycleUpdate: make(chan struct{}, 1),
|
||||
lifecycleReported: make(chan codersdk.WorkspaceAgentLifecycle, 1),
|
||||
connStatsChan: make(chan *agentsdk.Stats, 1),
|
||||
// TODO: This is a temporary hack to make tests not flake.
|
||||
// @kylecarbs has a better solution in here: https://github.com/coder/coder/pull/6469
|
||||
connStatsChan: make(chan *agentsdk.Stats, 8),
|
||||
}
|
||||
a.init(ctx)
|
||||
return a
|
||||
|
||||
Reference in New Issue
Block a user