Fix test code breakage

This commit is contained in:
Jeff Mitchell 2019-04-12 11:37:34 -04:00
parent a24474df5f
commit 3ec1e79b6a
1 changed files with 3 additions and 1 deletions

View File

@ -1360,7 +1360,9 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te
switch {
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:
localConfig.LicensingConfig = testGetLicensingConfig(pubKey)
}