mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Close coordinator in wsconncache test (#5348)
Possibly related to #5302
This commit is contained in:
@@ -148,6 +148,9 @@ func setupAgent(t *testing.T, metadata codersdk.WorkspaceAgentMetadata, ptyTimeo
|
||||
metadata.DERPMap = tailnettest.RunDERPAndSTUN(t)
|
||||
|
||||
coordinator := tailnet.NewCoordinator()
|
||||
t.Cleanup(func() {
|
||||
_ = coordinator.Close()
|
||||
})
|
||||
agentID := uuid.New()
|
||||
closer := agent.New(agent.Options{
|
||||
Client: &client{
|
||||
|
||||
Reference in New Issue
Block a user