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:
|
||||||
localConfig.LicensingConfig.AdditionalPublicKeys = append(localConfig.LicensingConfig.AdditionalPublicKeys, pubKey.(ed25519.PublicKey))
|
if pubKey != nil {
|
||||||
|
localConfig.LicensingConfig.AdditionalPublicKeys = append(localConfig.LicensingConfig.AdditionalPublicKeys, pubKey.(ed25519.PublicKey))
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
localConfig.LicensingConfig = testGetLicensingConfig(pubKey)
|
localConfig.LicensingConfig = testGetLicensingConfig(pubKey)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue