Skip to content

Commit

Permalink
fix a broken test caused by the configutil refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
raskchanky committed May 21, 2020
1 parent b824167 commit c9e2138
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vault/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"encoding/pem"
"errors"
"fmt"
"github.com/hashicorp/vault/internalshared/configutil"
"io"
"io/ioutil"
"math/big"
Expand Down Expand Up @@ -1493,7 +1494,9 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te
}

if coreConfig.RawConfig == nil {
coreConfig.RawConfig = new(server.Config)
c := new(server.Config)
c.SharedConfig = &configutil.SharedConfig{LogFormat: logging.UnspecifiedFormat.String()}
coreConfig.RawConfig = c
}

addAuditBackend := len(coreConfig.AuditBackends) == 0
Expand Down

0 comments on commit c9e2138

Please sign in to comment.