mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: add test for coord rolling restart (#14680)
Closes https://github.com/coder/team-coconut/issues/50 --------- Co-authored-by: Ethan Dickson <ethan@coder.com>
This commit is contained in:
@ -1485,9 +1485,6 @@ func (api *API) Close() error {
|
||||
default:
|
||||
api.cancel()
|
||||
}
|
||||
if api.derpCloseFunc != nil {
|
||||
api.derpCloseFunc()
|
||||
}
|
||||
|
||||
wsDone := make(chan struct{})
|
||||
timer := time.NewTimer(10 * time.Second)
|
||||
@ -1513,11 +1510,16 @@ func (api *API) Close() error {
|
||||
api.updateChecker.Close()
|
||||
}
|
||||
_ = api.workspaceAppServer.Close()
|
||||
_ = api.agentProvider.Close()
|
||||
if api.derpCloseFunc != nil {
|
||||
api.derpCloseFunc()
|
||||
}
|
||||
// The coordinator should be closed after the agent provider, and the DERP
|
||||
// handler.
|
||||
coordinator := api.TailnetCoordinator.Load()
|
||||
if coordinator != nil {
|
||||
_ = (*coordinator).Close()
|
||||
}
|
||||
_ = api.agentProvider.Close()
|
||||
_ = api.statsReporter.Close()
|
||||
_ = api.NetworkTelemetryBatcher.Close()
|
||||
_ = api.OIDCConvertKeyCache.Close()
|
||||
|
Reference in New Issue
Block a user