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:
Olaoluwa Osuntokun 2017-08-10 22:00:46 -07:00
parent c02710c8c9
commit 143e7bdf5f
No known key found for this signature in database
GPG Key ID: 3D0A94DB79743DF5

@ -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...)