diff --git a/vault/seal_testing.go b/vault/seal_testing.go index 43cae2253..f74b140e0 100644 --- a/vault/seal_testing.go +++ b/vault/seal_testing.go @@ -83,6 +83,10 @@ func (d *TestSeal) RecoveryConfig() (*SealConfig, error) { } func (d *TestSeal) SetRecoveryConfig(config *SealConfig) error { + if config == nil { + return nil + } + d.recoveryConfig = config return nil }