test: reposition context creation and extend TLS timeout

Fixes timeouts during integration tests on slower machines.
This commit is contained in:
bryanvu authored and Olaoluwa Osuntokun committed 2017-08-19 16:42:33 -07:00
1 parent a7218e84ea
commit c87678e695
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -256,7 +256,7 @@ func (l *lightningNode) Start(lndError chan error) error {
// Wait until TLS certificate and admin macaroon are created before
// using them, up to 20 sec.
tlsTimeout := time.After(20 * time.Second)
tlsTimeout := time.After(30 * time.Second)
for !fileExists(l.cfg.TLSCertPath) || !fileExists(l.cfg.AdminMacPath) {
time.Sleep(100 * time.Millisecond)
select {