lnd: remove global cfg variable
This commit is contained in:
3 files changed
+34
-32
No files matched your search
+6
-1
@@ -114,7 +114,12 @@ func TestTLSAutoRegeneration(t *testing.T) {
|
||||
|
||||
// Now let's run getTLSConfig. If it works properly, it should delete
|
||||
// the cert and create a new one.
|
||||
_, _, _, err = getTLSConfig(certPath, keyPath, nil, nil, rpcListeners)
|
||||
cfg := &Config{
|
||||
TLSCertPath: certPath,
|
||||
TLSKeyPath: keyPath,
|
||||
RPCListeners: rpcListeners,
|
||||
}
|
||||
_, _, _, err = getTLSConfig(cfg)
|
||||
if err != nil {
|
||||
t.Fatalf("couldn't retrieve TLS config")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user