mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-18 13:52:02 +01:00
lntest: increase port timeout
This commit is contained in:
parent
33b07be8c3
commit
d7f8fa6ab6
@ -8,6 +8,8 @@ import (
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/lightningnetwork/lnd/lntest/wait"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -45,7 +47,7 @@ func NextAvailablePort() int {
|
||||
defer portFileMutex.Unlock()
|
||||
|
||||
lockFile := filepath.Join(os.TempDir(), uniquePortFile+".lock")
|
||||
timeout := time.After(time.Second)
|
||||
timeout := time.After(wait.DefaultTimeout)
|
||||
|
||||
var (
|
||||
lockFileHandle *os.File
|
||||
|
Loading…
x
Reference in New Issue
Block a user