set the rest of the default args for tests
This commit is contained in:
parent
a198113f73
commit
e79a798781
1 changed files with 18 additions and 15 deletions
|
@ -132,21 +132,24 @@ func loadBanner(bannerFile *string, serverVersion string) *string {
|
||||||
// MakeDefaultArgs creates a default set of arguments for testing the server.
|
// MakeDefaultArgs creates a default set of arguments for testing the server.
|
||||||
func MakeDefaultTestArgs() *Args {
|
func MakeDefaultTestArgs() *Args {
|
||||||
args := &Args{
|
args := &Args{
|
||||||
CmdType: ServeCmd,
|
CmdType: ServeCmd,
|
||||||
Host: DefaultHost,
|
Host: DefaultHost,
|
||||||
Port: DefaultPort,
|
Port: DefaultPort,
|
||||||
DBPath: DefaultDBPath,
|
DBPath: DefaultDBPath,
|
||||||
EsHost: DefaultEsHost,
|
EsHost: DefaultEsHost,
|
||||||
EsPort: DefaultEsPort,
|
EsPort: DefaultEsPort,
|
||||||
PrometheusPort: DefaultPrometheusPort,
|
PrometheusPort: DefaultPrometheusPort,
|
||||||
NotifierPort: DefaultNotifierPort,
|
NotifierPort: DefaultNotifierPort,
|
||||||
JSONRPCPort: DefaultJSONRPCPort,
|
JSONRPCPort: DefaultJSONRPCPort,
|
||||||
EsIndex: DefaultEsIndex,
|
JSONRPCHTTPPort: 50002,
|
||||||
RefreshDelta: DefaultRefreshDelta,
|
MaxSessions: DefaultMaxSessions,
|
||||||
CacheTTL: DefaultCacheTTL,
|
SessionTimeout: DefaultSessionTimeout,
|
||||||
PeerFile: DefaultPeerFile,
|
EsIndex: DefaultEsIndex,
|
||||||
Banner: nil,
|
RefreshDelta: DefaultRefreshDelta,
|
||||||
Country: DefaultCountry,
|
CacheTTL: DefaultCacheTTL,
|
||||||
|
PeerFile: DefaultPeerFile,
|
||||||
|
Banner: nil,
|
||||||
|
Country: DefaultCountry,
|
||||||
|
|
||||||
GenesisHash: chaincfg.TestNet3Params.GenesisHash.String(),
|
GenesisHash: chaincfg.TestNet3Params.GenesisHash.String(),
|
||||||
ServerVersion: HUB_PROTOCOL_VERSION,
|
ServerVersion: HUB_PROTOCOL_VERSION,
|
||||||
|
|
Loading…
Add table
Reference in a new issue