mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 13:12:11 +02:00
test: ensure nodes spun up by test framework use fresh config files
This commit modifies the way the nodes spun up the by test framework are created such that they don’t use the configuration parameters storage in the normal lnd home directory. Otherwise, tests would pick up the configuration of the user’s pre-existing lnd nodes.
This commit is contained in:
@@ -176,6 +176,7 @@ func (l *lightningNode) genArgs() []string {
|
||||
args = append(args, fmt.Sprintf("--datadir=%v", l.cfg.DataDir))
|
||||
args = append(args, fmt.Sprintf("--tlscertpath=%v", l.cfg.TLSCertPath))
|
||||
args = append(args, fmt.Sprintf("--tlskeypath=%v", l.cfg.TLSKeyPath))
|
||||
args = append(args, fmt.Sprintf("--configfile=%v", l.cfg.DataDir))
|
||||
|
||||
if l.extraArgs != nil {
|
||||
args = append(args, l.extraArgs...)
|
||||
|
Reference in New Issue
Block a user