test: reposition context creation and extend TLS timeout

Fixes timeouts during integration tests on slower machines.
This commit is contained in:
bryanvu
2017-08-19 05:54:56 +00:00
committed by Olaoluwa Osuntokun
parent a7218e84ea
commit c87678e695
2 changed files with 5 additions and 2 deletions

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 {