Fix test code breakage

This commit is contained in:
Jeff Mitchell 2019-04-12 11:37:34 -04:00
parent a24474df5f
commit 3ec1e79b6a

View file

@ -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)
} }