fix: add grace period before showing replicas license error (#12989)

Fixes #8665.
This commit is contained in:
Kyle Carberry
2024-04-17 13:30:32 -04:00
committed by GitHub
parent b85d5d8491
commit 227e632053
3 changed files with 63 additions and 4 deletions

View File

@ -57,6 +57,7 @@ type Options struct {
DontAddLicense bool
DontAddFirstUser bool
ReplicaSyncUpdateInterval time.Duration
ReplicaErrorGracePeriod time.Duration
ExternalTokenEncryption []dbcrypt.Cipher
ProvisionerDaemonPSK string
}
@ -93,6 +94,7 @@ func NewWithAPI(t *testing.T, options *Options) (
DERPServerRelayAddress: oop.AccessURL.String(),
DERPServerRegionID: oop.BaseDERPMap.RegionIDs()[0],
ReplicaSyncUpdateInterval: options.ReplicaSyncUpdateInterval,
ReplicaErrorGracePeriod: options.ReplicaErrorGracePeriod,
Options: oop,
EntitlementsUpdateInterval: options.EntitlementsUpdateInterval,
LicenseKeys: Keys,