remove TestBypass flag (#566)

Tests should explicitly state their target configuration file, so no need
to use fallback default override flag
This commit is contained in:
Rauno Ots
2020-09-28 01:45:40 +02:00
committed by GitHub
parent d9bcf8246f
commit ecbc68561f
4 changed files with 11 additions and 18 deletions

View File

@@ -5,7 +5,6 @@ import (
"path/filepath"
"testing"
"github.com/thrasher-corp/gocryptotrader/config"
"github.com/thrasher-corp/gocryptotrader/core"
"github.com/urfave/cli/v2"
)
@@ -36,7 +35,6 @@ var (
)
func TestLoad(t *testing.T) {
config.TestBypass = true
fs := &flag.FlagSet{}
fs.String("config", testConfig, "")
newCtx := cli.NewContext(testApp, fs, &cli.Context{})