mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: Close idle connections on test cleanup (#4993)
It's possible that this was the source of a leak on Windows...
This commit is contained in:
@@ -568,6 +568,7 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
|
||||
InsecureSkipVerify: true,
|
||||
},
|
||||
}
|
||||
defer client.HTTPClient.CloseIdleConnections()
|
||||
}
|
||||
|
||||
// Since errCh only has one buffered slot, all routines
|
||||
|
||||
Reference in New Issue
Block a user