chore: fix TestManagedAgentLimit flake (#19026)

Closes https://github.com/coder/internal/issues/812
This commit is contained in:
Dean Sheather
2025-07-24 15:13:15 +10:00
committed by GitHub
parent 5319d47dfa
commit 9a05b4679b
2 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -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)
})
}