Fix test code breakage
This commit is contained in:
parent
a24474df5f
commit
3ec1e79b6a
|
@ -1360,7 +1360,9 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case localConfig.LicensingConfig != nil:
|
case localConfig.LicensingConfig != nil:
|
||||||
|
if pubKey != nil {
|
||||||
localConfig.LicensingConfig.AdditionalPublicKeys = append(localConfig.LicensingConfig.AdditionalPublicKeys, pubKey.(ed25519.PublicKey))
|
localConfig.LicensingConfig.AdditionalPublicKeys = append(localConfig.LicensingConfig.AdditionalPublicKeys, pubKey.(ed25519.PublicKey))
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
localConfig.LicensingConfig = testGetLicensingConfig(pubKey)
|
localConfig.LicensingConfig = testGetLicensingConfig(pubKey)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue