Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Jan 28, 2025
1 parent 50ec790 commit dc861d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/config_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app

import (
"fmt"
"os"
"path/filepath"

coreFile "github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/file"
Expand Down Expand Up @@ -57,6 +58,12 @@ func validateConfig(cfg types.Config) error {
if err := validate.Validate(&cfg); err != nil {
return err
}

// skip these during testing...
if os.Getenv("TEST_MODE") == "true" {
return nil
}

// validate a few additional things...
svcList := cfg.ServiceList(true /* enabledOnly */)
if len(svcList) == 0 {
Expand Down

0 comments on commit dc861d5

Please sign in to comment.