lnd: remove global cfg variable

This commit is contained in:
Oliver Gugger committed 2020-05-14 16:18:02 +02:00
1 parent 50e86f88fe
commit 4261d3f5af
3 files changed
+34 -32

No files matched your search

+6 -1
View File
@@ -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")
}