mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 07:26:47 +00:00
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:
@@ -4,7 +4,6 @@ import (
|
||||
"bufio"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@@ -1484,10 +1483,6 @@ func GetFilePath(configfile string) (string, error) {
|
||||
return configfile, nil
|
||||
}
|
||||
|
||||
if flag.Lookup("test.v") != nil && !TestBypass {
|
||||
return TestFile, nil
|
||||
}
|
||||
|
||||
exePath, err := common.GetExecutablePath()
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
||||
Reference in New Issue
Block a user