mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: fix TestManagedAgentLimit flake (#19026)
Closes https://github.com/coder/internal/issues/812
This commit is contained in:
@@ -830,7 +830,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
|
||||
}
|
||||
api.derpMesh.SetAddresses(addresses, false)
|
||||
}
|
||||
_ = api.updateEntitlements(ctx)
|
||||
_ = api.updateEntitlements(api.ctx)
|
||||
})
|
||||
} else {
|
||||
coordinator = agpltailnet.NewCoordinator(api.Logger)
|
||||
@@ -840,7 +840,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
|
||||
api.replicaManager.SetCallback(func() {
|
||||
// If the amount of replicas change, so should our entitlements.
|
||||
// This is to display a warning in the UI if the user is unlicensed.
|
||||
_ = api.updateEntitlements(ctx)
|
||||
_ = api.updateEntitlements(api.ctx)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user