From e79a7987818b95600accb03e2fe6511c28251a94 Mon Sep 17 00:00:00 2001 From: Jeffrey Picard Date: Mon, 17 Oct 2022 14:52:40 +0000 Subject: [PATCH] set the rest of the default args for tests --- server/args.go | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/server/args.go b/server/args.go index 98b5d7b..a87780b 100644 --- a/server/args.go +++ b/server/args.go @@ -132,21 +132,24 @@ func loadBanner(bannerFile *string, serverVersion string) *string { // MakeDefaultArgs creates a default set of arguments for testing the server. func MakeDefaultTestArgs() *Args { args := &Args{ - CmdType: ServeCmd, - Host: DefaultHost, - Port: DefaultPort, - DBPath: DefaultDBPath, - EsHost: DefaultEsHost, - EsPort: DefaultEsPort, - PrometheusPort: DefaultPrometheusPort, - NotifierPort: DefaultNotifierPort, - JSONRPCPort: DefaultJSONRPCPort, - EsIndex: DefaultEsIndex, - RefreshDelta: DefaultRefreshDelta, - CacheTTL: DefaultCacheTTL, - PeerFile: DefaultPeerFile, - Banner: nil, - Country: DefaultCountry, + CmdType: ServeCmd, + Host: DefaultHost, + Port: DefaultPort, + DBPath: DefaultDBPath, + EsHost: DefaultEsHost, + EsPort: DefaultEsPort, + PrometheusPort: DefaultPrometheusPort, + NotifierPort: DefaultNotifierPort, + JSONRPCPort: DefaultJSONRPCPort, + JSONRPCHTTPPort: 50002, + MaxSessions: DefaultMaxSessions, + SessionTimeout: DefaultSessionTimeout, + EsIndex: DefaultEsIndex, + RefreshDelta: DefaultRefreshDelta, + CacheTTL: DefaultCacheTTL, + PeerFile: DefaultPeerFile, + Banner: nil, + Country: DefaultCountry, GenesisHash: chaincfg.TestNet3Params.GenesisHash.String(), ServerVersion: HUB_PROTOCOL_VERSION,