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:
parent
c02710c8c9
commit
143e7bdf5f
@ -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...)
|
||||
|
Loading…
Reference in New Issue
Block a user