From 143e7bdf5f93bd870d41563da61675a1f7b68b2d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 10 Aug 2017 22:00:46 -0700 Subject: [PATCH] test: ensure nodes spun up by test framework use fresh config files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- networktest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/networktest.go b/networktest.go index 45e59b0e..ac9dc8f9 100644 --- a/networktest.go +++ b/networktest.go @@ -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...)