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