Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Jul 15, 2021
1 parent a47752b commit 60c7fb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const (
VersionMajor = 1
VersionMinor = 0
VersionPatch = 0
VersionReleaseLevel = "alpha"
VersionReleaseNumber = 1
VersionReleaseLevel = ""
VersionReleaseNumber = 0
)

// Version returns the semantic version for the current build.
Expand Down
9 changes: 6 additions & 3 deletions pkg/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ func New(conf config.Config) (s *Server, err error) {
s = &Server{conf: conf, errc: make(chan error, 1), healthy: false}

// Create the vault to store secrets in (Google Secret Manager)
if s.vault, err = NewSecretManager(conf.Google); err != nil {
return nil, err
// TODO: if we're in test mode, create a mock secret manager
if conf.Mode != gin.TestMode {
if s.vault, err = NewSecretManager(conf.Google); err != nil {
return nil, err
}
log.Debug().Msg("connected to google secret manager")
}
log.Debug().Msg("connected to google secret manager")

// Create the router
gin.SetMode(conf.Mode)
Expand Down

0 comments on commit 60c7fb9

Please sign in to comment.